From 99ee74a012a815f99324b617310b734125368acb Mon Sep 17 00:00:00 2001 From: Valery Kartel Date: Thu, 3 Mar 2016 17:08:39 +0200 Subject: 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 --- testing/php7/php7-fpm.initd | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'testing/php7/php7-fpm.initd') 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 $? +} -- cgit v1.2.3