linamh/dev-lang/php/files/php-fpm.init
2010-07-27 09:43:07 +00:00

23 lines
385 B
Plaintext
Executable File

#!/sbin/runscript
PHP_FPM_CONF="/etc/php/fpm-php5/php-fpm.conf"
opts="depend start stop reload"
depend() {
need net
use apache2 lighttpd nginx
}
start() {
ebegin "Starting PHP FastCGI server"
start-stop-daemon --start --exec /usr/bin/php-fpm -- -y "${PHP_FPM_CONF}"
eend $?
}
stop() {
ebegin "Stopping PHP FastCGI server"
start-stop-daemon --stop --name php-fpm
eend $?
}