Accepting request 1154405 from home:etamPL:branches:server:http

logrotate: don't fail if service not running

OBS-URL: https://build.opensuse.org/request/show/1154405
OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=254
This commit is contained in:
Илья Индиго 2024-03-03 11:04:33 +00:00 committed by Git OBS Bridge
parent 63dfd61764
commit ba0715088d
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Mar 3 10:24:27 UTC 2024 - Adam Mizerski <adam@mizerski.pl>
- logrotate: don't fail if service not running
-------------------------------------------------------------------
Thu Feb 22 14:08:07 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

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