aboutsummaryrefslogtreecommitdiffstats
path: root/main/mini_httpd/mini_httpd.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'main/mini_httpd/mini_httpd.logrotate')
-rw-r--r--main/mini_httpd/mini_httpd.logrotate26
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
}