From 0879c96bf4ed16adb8474e0181bed2dd4a886e49f142eaf6a182575512568943 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Mon, 10 Oct 2016 10:26:20 +0000 Subject: [PATCH] - Fix the logrotate script: we had a hardcoded postrotate action pointing to /etc/init.d/nginx. This does not exist anymore on systemd hosts. Replace it with /usr/sbin/nginx -s reopen, which will use the pid file passed in the config file or the compiled in default path. OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=71 --- nginx.changes | 9 +++++++++ nginx.logrotate | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/nginx.changes b/nginx.changes index 4fc86b3..02183eb 100644 --- a/nginx.changes +++ b/nginx.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Oct 10 10:23:47 UTC 2016 - mrueckert@suse.de + +- Fix the logrotate script: we had a hardcoded postrotate action + pointing to /etc/init.d/nginx. This does not exist anymore on + systemd hosts. Replace it with /usr/sbin/nginx -s reopen, which + will use the pid file passed in the config file or the compiled + in default path. + ------------------------------------------------------------------- Thu Sep 29 10:45:57 UTC 2016 - mrueckert@suse.de diff --git a/nginx.logrotate b/nginx.logrotate index a9e46d3..7281a1b 100644 --- a/nginx.logrotate +++ b/nginx.logrotate @@ -8,7 +8,8 @@ notifempty create 644 root root postrotate - /etc/init.d/nginx reopen + # -s reopen will use the pid file passed in the config file or the compiled in default path + /usr/sbin/nginx -s reopen endscript }