add php with gmp5 patch
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2282 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
22
dev-lang/php/files/php-fpm.init
Executable file
22
dev-lang/php/files/php-fpm.init
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/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 $?
|
||||
}
|
||||
Reference in New Issue
Block a user