diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/thttpd/logrotate.d | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
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 +} |