diff --git a/util/logrotate.d/weewx b/util/logrotate.d/weewx index 4765e3c3..22dfe13b 100644 --- a/util/logrotate.d/weewx +++ b/util/logrotate.d/weewx @@ -6,7 +6,7 @@ delaycompress notifempty # debian uses root:adm - create 644 root adm +# create 644 root adm # ubuntu uses syslog:adm # create 644 syslog adm sharedscripts @@ -14,9 +14,13 @@ # standard way of invoking rc scripts /etc/init.d/rsyslog stop /etc/init.d/rsyslog start -# upstart way of invoking rc scripts +# on some systems a reload will work +# /etc/init.d/rsyslog reload > /dev/null +# some ubuntu systems use upstart # service rsyslog restart > /dev/null # some redhat/fedora systems have their own way # reload rsyslog > /dev/null 2>&1 +# some debian systems do it this way +# invoke-rc.d rsyslog reload > /dev/null endscript }