#44295: Attempting to add more than one LaunchItem ---------------------+-------------------------------- Reporter: cr@… | Owner: macports-tickets@… Type: request | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.1 Keywords: | Port: salt ---------------------+-------------------------------- Greetings, I am updating the Portfile for Salt. I'm trying to add two variants--"master" and "minion". The default is "minion". Both variants have a startupitem, but at the end of the install (port install salt +master +minion) I get {{{ ---> Fetching distfiles for salt ---> Verifying checksums for salt ---> Extracting salt ---> Configuring salt ---> Building salt ---> Staging salt into destroot ---> Creating launchd control script ########################################################### # A startup item has been generated that will aid in # starting salt with launchd. It is disabled # by default. Execute the following command to start it, # and to cause it to launch at startup: # # sudo port load salt ###########################################################\ }}} but my Portfile says {{{ [...] default_variants +minion variant minion { startupitem.create yes startupitem.name salt-minion startupitem.netchange yes startupitem.logevents yes startupitem.logfile ${prefix}/var/log/salt/minion startupitem.executable ${prefix}/bin/salt-minion if ![file exists /opt/local/etc/salt/minion] { file copy ${worksrcpath}/conf/minion /opt/local/etc/salt } } variant master { startupitem.create yes startupitem.name salt-master startupitem.netchange yes startupitem.logevents yes startupitem.logfile ${prefix}/var/log/salt/master startupitem.executable ${prefix}/bin/salt-master [...] }}} and 'port load salt' returns {{{ port load salt Error: org.macports.load for port salt returned: Launchd plist /Library/LaunchDaemons/org.macports.salt-minion.plist was not found }}} and indeed only org.macports.salt-master.plist is present in /Library/LaunchDaemons. So can I not put startup item directives in a variant? -- Ticket URL: <https://trac.macports.org/ticket/44295> MacPorts <http://www.macports.org/> Ports system for OS X