diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2016-03-03 17:08:39 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-03-08 06:14:20 +0000 |
commit | 99ee74a012a815f99324b617310b734125368acb (patch) | |
tree | 8a816da20aeb7142b2101a181e2035662ae70dc2 /testing/php7/php7-fpm.initd | |
parent | 26c2df1f4001c1ffd11386b75726d110a1e02e6d (diff) | |
download | aports-99ee74a012a815f99324b617310b734125368acb.tar.bz2 aports-99ee74a012a815f99324b617310b734125368acb.tar.xz |
testing/php7: security upgrade to 7.0.4, and improvements
- 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
Diffstat (limited to 'testing/php7/php7-fpm.initd')
-rw-r--r-- | testing/php7/php7-fpm.initd | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/testing/php7/php7-fpm.initd b/testing/php7/php7-fpm.initd index c6bd71a69a..1016c68f0d 100644 --- a/testing/php7/php7-fpm.initd +++ b/testing/php7/php7-fpm.initd @@ -7,7 +7,9 @@ command="/usr/sbin/php-fpm7" command_args="--fpm-config $cfgfile --pid $pidfile" required_files="$cfgfile" -extra_started_commands="reload" +extra_started_commands="reload reopen" +description_reload="Reload configuration" +description_reopen="Reopen log files" depend() { need net @@ -21,7 +23,13 @@ start_pre() { } reload() { - ebegin "Reloading $name" + 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 $? +} |