diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-07-19 02:58:10 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-07-19 02:58:10 +0400 |
commit | e4788d508f581b11f4578e4779ead859f8840610 (patch) | |
tree | ed206ccf8fc1ca4044670c77d822627e2af0c688 | |
parent | 562684b97884396e37f5150736a61112f3fe0d9c (diff) | |
download | lighttpd-e4788d508f581b11f4578e4779ead859f8840610.tar.gz |
Added support for SMF in logrotate scriptdyson/1.4.32-1+dyson1
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/lighttpd.logrotate | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog index ed8a199..9625426 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,10 +12,10 @@ lighttpd (1.4.32-1+dyson1) unstable; urgency=low [ Igor Pashev ] * Added SMF service (debian/lighttpd.smf/) * Added build-dep dh-smf [illumos-any] - * debian/lighty-enable-mod prints how to restart lighttd - with SMF if running SMF + * debian/lighty-enable-mod prints how to restart lighttd with SMF if running SMF + * Added support for SMF in logrotate script - -- Igor Pashev <pashev.igor@gmail.com> Fri, 19 Jul 2013 02:50:10 +0400 + -- Igor Pashev <pashev.igor@gmail.com> Fri, 19 Jul 2013 02:57:27 +0400 lighttpd (1.4.31-4) unstable; urgency=high diff --git a/debian/lighttpd.logrotate b/debian/lighttpd.logrotate index 4971adb..7f40a2b 100644 --- a/debian/lighttpd.logrotate +++ b/debian/lighttpd.logrotate @@ -7,7 +7,9 @@ notifempty sharedscripts postrotate - if [ -x /usr/sbin/invoke-rc.d ]; then \ + if [ -x /usr/bin/smf_present ]; then \ + [ `svcstatus lighttpd` = online ] && svcadm refresh lighttpd; \ + elif [ -x /usr/sbin/invoke-rc.d ]; then \ invoke-rc.d lighttpd reopen-logs > /dev/null 2>&1; \ else \ /etc/init.d/lighttpd reopen-logs > /dev/null 2>&1; \ |