logrotate file fails on all but sysvinit

Bug #1464745 reported by Cameron Norman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rsyslog (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

The logrotate file supplied can not work with Upstart or systemd because it calls `service rsyslog rotate` -- neither support custom actions. Instead a custom script to send SIGHUP to rsyslog depending on the init system should be used. It can just use

* `initctl reload rsyslog` with Upstart
* `systemctl kill --signal=SIGHUP --kill-who=main rsyslog.service` with systemd
* `/etc/init.d/rsyslog rotate` with sysvinit

Revision history for this message
Tony Espy (awe) wrote :

This bug no longer exists in Ubuntu 16.04, as the rsyslog rotate script (inherited from the Debian package) handles both systemd and sysvinit based systems:

$ more /usr/lib/rsyslog/rsyslog-rotate
#!/bin/sh

if [ -d /run/systemd/system ]; then
    systemctl kill -s HUP rsyslog.service
else
    invoke-rc.d rsyslog rotate > /dev/null
fi

As such, I'm updating the status on this to Invalid.

Changed in rsyslog (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.