Created
April 13, 2012 04:49
-
-
Save malev/2373780 to your computer and use it in GitHub Desktop.
/etc/init.d/php5-fcgi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PHP_SCRIPT=/usr/bin/php5-fcgi | |
RETVAL=0 | |
case "$1" in | |
start) | |
echo "Starting fastcgi" | |
$PHP_SCRIPT | |
RETVAL=$? | |
;; | |
stop) | |
echo "Stopping fastcgi" | |
killall -9 php-cgi | |
RETVAL=$? | |
;; | |
restart) | |
echo "Restarting fastcgi" | |
killall -9 php-cgi | |
$PHP_SCRIPT | |
RETVAL=$? | |
;; | |
*) | |
echo "Usage: php-fastcgi {start|stop|restart}" | |
exit 1 | |
;; | |
esac | |
exit $RETVAL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment