Am 31.07.2014 11:05, schrieb Martin Pitt: > Arne Wichmann [2012-05-09 10:20 +0200]: >> postrotate >> invoke-rc.d rsyslog rotate > /dev/null >> endscript > > So what exactly would be wrong with just using "service" instead of > invoke-rc.d? Sure, that would call the init.d script also under > systemd, but do_rotate() is more or less just a fancy SIGHUP, so that > should work just fine? I tested it under systemd as well. >
Looks like this is no longer an issue. Under current sid running invoke-rc.d rsyslog rotate, I get # invoke-rc.d rsyslog rotate [ ok ] Closing open files: rsyslogd. I'm keeping this bug open though for now, as I eventually want to replace the postrotate snippet with something which is not dependend on the SysV init script. I'm currently leaning towards shipping a dedicated helper script /usr/sbin/rsyslog-rotate, which runs something like #!/bin/sh if [ -d /run/systemd/system ] ; then systemctl kill -s SIGHUP rsyslog.service else start-stop-daemon --stop --signal HUP --quiet --pidfile /var/run/rsyslogd.pid --exec /usr/sbin/rsyslogd fi And then drop the "rotate" action from the SysV init script. -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature