[Bug 1230917] Re: php5-fpm logrotate errors after package switched to upstart
Ondřej Surý
ondrej at sury.org
Thu Feb 13 16:32:11 UTC 2014
This should help:
$ git diff HEAD~2
diff --git a/debian/php5-fpm.init b/debian/php5-fpm.init
index b8b2fb3..13485ce 100644
--- a/debian/php5-fpm.init
+++ b/debian/php5-fpm.init
@@ -16,7 +16,7 @@ DESC="PHP5 FastCGI Process Manager"
NAME=php5-fpm
DAEMON=/usr/sbin/$NAME
DAEMON_ARGS="--daemonize --fpm-config /etc/php5/fpm/php-fpm.conf"
-PIDFILE=/var/run/php5-fpm.pid
+PIDFILE=/run/php5-fpm.pid
TIMEOUT=30
SCRIPTNAME=/etc/init.d/$NAME
diff --git a/debian/php5-fpm.logrotate b/debian/php5-fpm.logrotate
index 328193e..f794c60 100644
--- a/debian/php5-fpm.logrotate
+++ b/debian/php5-fpm.logrotate
@@ -6,6 +6,6 @@
compress
delaycompress
postrotate
- invoke-rc.d php5-fpm reopen-logs > /dev/null
+ kill -USR1 $(cat /run/php5-fpm.pid) > /dev/null
endscript
}
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1230917
Title:
php5-fpm logrotate errors after package switched to upstart
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1230917/+subscriptions
More information about the Ubuntu-server-bugs
mailing list