Startup items

Scott Haneda talklists at newgeo.com
Wed Jun 3 23:06:37 PDT 2009


I added a startup item to a portfile
###########################################################
# A startup item has been generated that will aid in
# starting assp with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.assp.plist
###########################################################

To start this software, all that it needs is
/opt/local/bin/perl /opt/local/var/ASSP/assp.pl

The startup item that was made was
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd" >
<plist version='1.0'>
<dict>
<key>Label</key><string>org.macports.assp</string>
<key>ProgramArguments</key>
<array>
         <string>/opt/local/bin/daemondo</string>
         <string>--label=assp</string>
         <string>--start-cmd</string>
         <string>/opt/local/etc/LaunchDaemons/org.macports.assp/ 
assp.wrapper</string>
         <string>start</string>
         <string>;</string>
         <string>--stop-cmd</string>
         <string>/opt/local/etc/LaunchDaemons/org.macports.assp/ 
assp.wrapper</string>
         <string>stop</string>
         <string>;</string>
         <string>--restart-cmd</string>
         <string>/opt/local/etc/LaunchDaemons/org.macports.assp/ 
assp.wrapper</string>
         <string>restart</string>
         <string>;</string>
         <string>--pid=none</string>
</array>
<key>Debug</key><false/>
<key>Disabled</key><true/>
<key>OnDemand</key><false/>
<key>RunAtLoad</key><false/>
</dict>
</plist>

When I loaded it, ASSP was not started, and I am not understanding the  
start, stop, restart, wrapper items.  This is a pretty basic startup  
item, run at load, that is it.  I do not think it should be set to  
keep running always, as you may want to kill it within the web  
interface.

Looking into some of the files above,
/opt/local/etc/LaunchDaemons/org.macports.assp/assp.wrapper
Start()
{
         sh /opt/local/etc/startup/assp.sh start
}

The above path does not even exist.
Thanks for any help.
-- 
Scott * If you contact me off list replace talklists@ with scott@ *



More information about the macports-dev mailing list