Skip to content

Instantly share code, notes, and snippets.

@fracek
Created February 12, 2012 20:25
Show Gist options
  • Select an option

  • Save fracek/1810709 to your computer and use it in GitHub Desktop.

Select an option

Save fracek/1810709 to your computer and use it in GitHub Desktop.
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