mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 04:05:40 +03:00
- fixes #5220 - sqlite3 & pdo_sqlite now uses system libsqlite3 not bundled one (fixes #5198) - change fpm log & pid paths and names to not intersect with main/php - change fpm init script to use reopen logs signal - add logrotate script
35 lines
712 B
Text
35 lines
712 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 reopen"
|
|
description_reload="Reload configuration"
|
|
description_reopen="Reopen log files"
|
|
|
|
depend() {
|
|
need net
|
|
before apache2 lighttpd nginx
|
|
}
|
|
|
|
start_pre() {
|
|
ebegin
|
|
$command $command_args -t 2>/dev/null
|
|
eend $?
|
|
}
|
|
|
|
reload() {
|
|
ebegin "Reloading ${SVCNAME} configuration"
|
|
start-stop-daemon --signal USR2 --pidfile $pidfile
|
|
eend $?
|
|
}
|
|
|
|
reopen() {
|
|
ebegin Reopening ${SVCNAME} log files""
|
|
start-stop-daemon --signal USR1 --pidfile $pidfile
|
|
eend $?
|
|
}
|