Launchd not starting lighttpd

Sterling Anderson sterling_anderson at mac.com
Wed Jun 20 12:21:59 PDT 2007


I installed LightTPD and it runs fine, but after loading the  
LaunchDaemon it refuses to start. If I do a ps in a terminal I can  
see daemondo is loaded with with the lighttpd label:

6  ??  Ss    1:58PM   0:00.01 /opt/local/bin/daemondo -- 
label=lighttpd --start-cmd /opt/local/etc/LaunchDaemons/ 
org.macports.lighttpd/lighttpd.wrapper start ; --stop-cmd /opt/local/ 
etc/LaunchDaemons/org.macports.lighttpd/lighttpd.wrapper stop ; -- 
restart-cmd /opt/local/etc/LaunchDaemons/org.macports.lighttpd/ 
lighttpd.wrapper restart ; --pid=none

It won't start the server though. If I run the start command:

/opt/local/sbin/lighttpd -f /opt/local/etc/lighttpd/lighttpd.conf

it pops right up, no errors, everything is great.

My org.macports.lighttpd.plist file looks like this:

<?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>Debug</key>
         <false/>
         <key>Label</key>
         <string>org.macports.lighttpd</string>
         <key>OnDemand</key>
         <false/>
         <key>ProgramArguments</key>
         <array>
                 <string>/opt/local/bin/daemondo</string>
                 <string>--label=lighttpd</string>
                 <string>--start-cmd</string>
                 <string>/opt/local/etc/LaunchDaemons/ 
org.macports.lighttpd/lighttpd.wrapper</string>
                 <string>start</string>
                 <string>;</string>
                 <string>--stop-cmd</string>
                 <string>/opt/local/etc/LaunchDaemons/ 
org.macports.lighttpd/lighttpd.wrapper</string>
                 <string>stop</string>
                 <string>;</string>
                 <string>--restart-cmd</string>
                 <string>/opt/local/etc/LaunchDaemons/ 
org.macports.lighttpd/lighttpd.wrapper</string>
                 <string>restart</string>
                 <string>;</string>
                 <string>--pid=none</string>
         </array>
         <key>RunAtLoad</key>
         <false/>
</dict>
</plist>


Any ideas?

--
Sterling Anderson
http://sterlinganderson.net/
sterling_anderson[at]mac.com






More information about the macports-users mailing list