SHA256
1
0
forked from pool/nginx

- 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
This commit is contained in:
2016-10-10 10:26:20 +00:00
committed by Git OBS Bridge
parent e577b6dc17
commit 0879c96bf4
2 changed files with 11 additions and 1 deletions

View File

@@ -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
}