Summary: | app-admin/rsyslog-5.8.6 logrotate config not working with systemd service | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Denis Lisov <dennis.lissov> |
Component: | Current packages | Assignee: | Ultrabug <ultrabug> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander, enrico.tagliavini, konduryan |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Denis Lisov
2012-01-15 17:56:01 UTC
Hello Dennis, as I'm no systemd user myself would you maybe have a suggestion on how to handle this properly ? Thanks In /etc/logrotate.d/rsyslog line: /etc/init.d/rsyslog reload &>/dev/null || true seems to be changed to: systemctl reload-or-try-restart rsyslog.service &>/dev/null || true un-CC'ing myself since I stepped down as co-maintainer of rsyslog Same here with rsyslog 7.2.5. There is another solution, working for both openrc and systemd: kill -HUP $(cat /run/rsyslogd.pid) &>/dev/null || true [which is what the openrc init script does]. This change should be applied to rsyslog.logrotate, postrotate command, associated with 2 files syslog and messages Thanks guys, enjoy +*rsyslog-7.2.7 (18 Apr 2013) + + 18 Apr 2013; Ultrabug <ultrabug@gentoo.org> files/7-stable/rsyslog.logrotate, + +rsyslog-7.2.7.ebuild: + fix logrotate for systemd thx to Enrico Tagliavini and Dennis Lissov #399011, + version bump + thank you(In reply to comment #5) > Thanks guys, enjoy > > +*rsyslog-7.2.7 (18 Apr 2013) > + > + 18 Apr 2013; Ultrabug <ultrabug@gentoo.org> > files/7-stable/rsyslog.logrotate, > + +rsyslog-7.2.7.ebuild: > + fix logrotate for systemd thx to Enrico Tagliavini and Dennis Lissov > #399011, > + version bump > + Thank you very much for including the fix (In reply to comment #6) > thank you(In reply to comment #5) > > Thanks guys, enjoy > > > > +*rsyslog-7.2.7 (18 Apr 2013) > > + > > + 18 Apr 2013; Ultrabug <ultrabug@gentoo.org> > > files/7-stable/rsyslog.logrotate, > > + +rsyslog-7.2.7.ebuild: > > + fix logrotate for systemd thx to Enrico Tagliavini and Dennis Lissov > > #399011, > > + version bump > > + > > Thank you very much for including the fix My pleasure, thanks for your patience. Please not that this has been done on the rsyslog v7 branch only. It makes perfect sense for version 7 only. The last time I tried the systemd unit files in branches 5 and 6 they were invalid for the systemd versions in the main portage tree. I have not checked if upstream fixed this or not. The lastest version does work anyway, so this is ok. |