mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-27 04:12:29 +01:00
23 lines
376 B
Plaintext
23 lines
376 B
Plaintext
#!/sbin/runscript
|
|
|
|
PHP_FPM_CONF="/etc/php/php-fpm.conf"
|
|
|
|
extra_started_commands="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 $?
|
|
}
|