Skip to content

Instantly share code, notes, and snippets.

@rafalw
Created July 11, 2012 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafalw/3092562 to your computer and use it in GitHub Desktop.
Save rafalw/3092562 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# Uruchamia php5-cgi - na potrzeby nginx
# Położenie:
# /etc/network/if-up.d
#
#if [ "$IFACE" = "wlan1" ] ; then
if [ "$IFACE" = "eth0" ] ; then
/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -C 3 -u www-data -- /usr/bin/php5-cgi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment