diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-02-07 11:55:27 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-02-07 11:10:38 +0000 |
commit | c872afe7630d0713ecf4eb8fd52656700f86c395 (patch) | |
tree | 48ed68b2f121f69208e95ca50870540811ce4c9b /main/mini_httpd/mini_httpd.logrotate | |
parent | 8aa674ad330af521c81be36fe7e9d7b46308ac5d (diff) | |
download | aports-c872afe7630d0713ecf4eb8fd52656700f86c395.tar.bz2 aports-c872afe7630d0713ecf4eb8fd52656700f86c395.tar.xz |
main/mini_httpd: upgrade to 1.26
Diffstat (limited to 'main/mini_httpd/mini_httpd.logrotate')
-rw-r--r-- | main/mini_httpd/mini_httpd.logrotate | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/main/mini_httpd/mini_httpd.logrotate b/main/mini_httpd/mini_httpd.logrotate index bbd448b80a..046b19defd 100644 --- a/main/mini_httpd/mini_httpd.logrotate +++ b/main/mini_httpd/mini_httpd.logrotate @@ -1,16 +1,14 @@ /var/log/mini_httpd/*.log { - weekly - missingok - copytruncate - rotate 7 - compress - notifempty - sharedscripts - postrotate - for i in /var/run/mini_httpd*.pid /var/run/mini_httpd/*.pid; do \ - if [ -f "$i" ]; then \ - /etc/init.d/$(basename $i .pid) restart > /dev/null 2>&1 || true ; \ - fi; \ - done; - endscript + weekly + missingok + copytruncate + rotate 7 + compress + notifempty + sharedscripts + postrotate + for i in /run/mini_httpd/*.pid; do \ + /etc/init.d/$(basename $i .pid) --quiet --ifstarted reload \ + done; + endscript } |