diff options
Diffstat (limited to 'community/thttpd/logrotate.d')
-rw-r--r-- | community/thttpd/logrotate.d | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/community/thttpd/logrotate.d b/community/thttpd/logrotate.d new file mode 100644 index 000000000..efac62704 --- /dev/null +++ b/community/thttpd/logrotate.d @@ -0,0 +1,12 @@ +/var/log/thttpd/*log { + missingok + postrotate + test -d /sys/fs/cgroup/systemd && { + systemctl status thttpd.service | grep -q running && + systemctl restart thttpd.service >/dev/null + } || { + rc.d list thttpd | grep -q STARTED && + /etc/rc.d/thttpd restart >/dev/null + } + endscript +} |