diff options
author | Eivind Uggedal <eivind@uggedal.com> | 2014-05-21 07:44:02 +0000 |
---|---|---|
committer | Eivind Uggedal <eivind@uggedal.com> | 2014-05-21 07:44:02 +0000 |
commit | b8212dd81e9b69cc66811180a1da642eb260c268 (patch) | |
tree | 0bf26f5e7a7b38bb04a04067984b77a00be171c5 /main/nginx/nginx.logrotate | |
parent | d83385088b2605e6b4498fa98dad8629d26a16c1 (diff) | |
download | aports-b8212dd81e9b69cc66811180a1da642eb260c268.tar.bz2 aports-b8212dd81e9b69cc66811180a1da642eb260c268.tar.xz |
main/nginx: logrotate fix
Reopen logfiles in logrotate scriptlet only if nginx is running.
Diffstat (limited to 'main/nginx/nginx.logrotate')
-rw-r--r-- | main/nginx/nginx.logrotate | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/nginx/nginx.logrotate b/main/nginx/nginx.logrotate index 7778b1108b..00e5a94eb5 100644 --- a/main/nginx/nginx.logrotate +++ b/main/nginx/nginx.logrotate @@ -6,7 +6,7 @@ missingok sharedscripts postrotate - kill -USR1 `cat /var/run/nginx.pid` + test -r /var/run/nginx.pid && kill -USR1 `cat /var/run/nginx.pid` endscript } |