mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-09 02:32:25 +01:00
- fix arch=noarch for php, php-common, php-pear - php-fpm and php-apache2 package code moved from main to related subpackages - clean init script for php-fpm
28 lines
502 B
Plaintext
28 lines
502 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
name="PHP FastCGI Process Manager"
|
|
cfgfile="/etc/php/php-fpm.conf"
|
|
pidfile="/var/run/php-fpm.pid"
|
|
command="/usr/bin/php-fpm"
|
|
command_args="--fpm-config $cfgfile --pid $pidfile"
|
|
required_files="$cfgfile"
|
|
|
|
extra_started_commands="reload"
|
|
|
|
depend() {
|
|
need net
|
|
use 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} --name ${SVCNAME}
|
|
eend $?
|
|
}
|