summaryrefslogtreecommitdiff
path: root/debian/rsyslog.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rsyslog.logrotate')
-rw-r--r--debian/rsyslog.logrotate12
1 files changed, 10 insertions, 2 deletions
diff --git a/debian/rsyslog.logrotate b/debian/rsyslog.logrotate
index d75287c..15b4d33 100644
--- a/debian/rsyslog.logrotate
+++ b/debian/rsyslog.logrotate
@@ -7,7 +7,11 @@
delaycompress
compress
postrotate
- invoke-rc.d rsyslog rotate > /dev/null
+ if [ -x /usr/sbin/svcadm ]; then
+ /usr/sbin/svcadm refresh svc:/system/system-log:rsyslog
+ else
+ invoke-rc.d rsyslog rotate > /dev/null
+ fi
endscript
}
@@ -32,6 +36,10 @@
delaycompress
sharedscripts
postrotate
- invoke-rc.d rsyslog rotate > /dev/null
+ if [ -x /usr/sbin/svcadm ]; then
+ /usr/sbin/svcadm refresh svc:/system/system-log:rsyslog
+ else
+ invoke-rc.d rsyslog rotate > /dev/null
+ fi
endscript
}