2014-07-08 14:25 GMT+02:00 Michael Biebl <[email protected]>: > This is an action only implemented by the SysV init script. That means > it currently actually relies on the SysV init script even when booted > with systemd. > > In Debian, SysV init scripts are still mandatory, so this is sort-of > ok, even though I don't particularly like this situation. > > A solution that would work with all init systems would be something like > > kill -SIGHUP $(cat /var/run/rsyslogd.pid). > > A systemd-only solution would look like this: > > systemctl kill -s HUP rsyslog.service
Maybe shipping a small helper script named rsyslog-rotate in /usr/sbin might be the best solution for this. This script could then do the right thing, depending on the init system. E.g. under systemd it runs $ systemctl kill -s HUP rsyslog.service under upstart it runs $ reload rsyslog and under sysvinit $ start-stop-daemon --stop --signal HUP --quiet --pidfile /var/run/rsyslogd.pid --exec /usr/sbin/rsyslogd -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1331891 Title: [systemd] /etc/logrotate.d/rsyslog fails to instruct rsyslog to close & reopen fds To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/1331891/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
