diff --git a/nginx.changes b/nginx.changes index 239c0c5..69b1088 100644 --- a/nginx.changes +++ b/nginx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Mar 3 10:24:27 UTC 2024 - Adam Mizerski + +- logrotate: don't fail if service not running + ------------------------------------------------------------------- Thu Feb 22 14:08:07 UTC 2024 - Dominique Leuenberger diff --git a/nginx.logrotate b/nginx.logrotate index 5ca17a5..6d64cb6 100644 --- a/nginx.logrotate +++ b/nginx.logrotate @@ -8,8 +8,7 @@ notifempty delaycompress lastaction - # -s reopen will use the pid file passed in the config file or the compiled in default path - /usr/sbin/nginx -s reopen - endscript + # "-s reopen" will use the pid file passed in the config file or the compiled in default path + [ -f /run/nginx.pid ] && /usr/sbin/nginx -s reopen + endscript } -