Skip to content

Instantly share code, notes, and snippets.

@fracek
Created Feb 12, 2012
Embed
What would you like to do?
rc.d scripts
#!/bin/sh
#
# Spawn a php-fcgi using spawn-fcgi
daemon="/usr/local/bin/spawn-fcgi"
. /etc/rc.d/rc.subr
pexp="/usr/local/bin/php-fastcgi-5.2"
rc_bg=NO
daemon_flags="-a 127.0.0.1 -p 9000 -u www -g www -- /usr/local/bin/php-fastcgi-5.2"
rc_cmd $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment