1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 20:55:19 +03:00
aports/testing/php7/php7-fpm.initd
Valery Kartel 9db98a17fa testing/php7: new aport
The PHP language runtime engine - 7th branch
http://php.net/
2016-02-10 12:48:54 +01:00

27 lines
490 B
Text

#!/sbin/openrc-run
name="PHP7 FastCGI Process Manager"
cfgfile="/etc/php7/php-fpm.conf"
pidfile="/var/run/php-fpm7.pid"
command="/usr/sbin/php-fpm7"
command_args="--fpm-config $cfgfile --pid $pidfile"
required_files="$cfgfile"
extra_started_commands="reload"
depend() {
need net
before apache2 lighttpd nginx
}
start_pre() {
ebegin
$command $command_args -t 2>/dev/null
eend $?
}
reload() {
ebegin "Reloading $name"
start-stop-daemon --signal USR2 --pidfile $pidfile
eend $?
}