Auto Launching PHP-FPM

Posted by Seth on Super User See other posts from Super User or by Seth
Published on 2011-01-16T03:14:51Z Indexed on 2011/01/16 3:55 UTC
Read the original article Hit count: 251

Filed under:
|

My plist file

<?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.php-fpm</string>
<key>ProgramArguments</key>
<array>
    <string>/opt/local/bin/daemondo</string>
    <string>--label=php-fpm</string>
    <string>--start-cmd</string>
    <string>/opt/local/sbin/php-fpm</string>
    <string>;</string>
    <string>--pid=fileauto</string>
    <string>--pidfile</string>
    <string>/opt/local/var/run/php-fpm/php-fpm.pid</string>
</array>
<key>Debug</key><false/>
<key>Disabled</key><true/>
<key>OnDemand</key><false/>
</dict>
</plist>

After rebooting, it's not loading up automatically. I still have to manually start php-fpm. I have tried unloading and adding RunAtLoad etc. with no luck and tried both these launchctl commands.

sudo launchctl load -F /Library/LaunchDaemons/org.macports.php-fpm.plist
sudo launchctl load -w /Library/LaunchDaemons/org.macports.php-fpm.plist

© Super User or respective owner

Related posts about osx

Related posts about launchctl