Bug#724796: systemd loses track of rsyslog state when syslog.service is replaced during upgrade
Michael Biebl
biebl at debian.org
Tue Jul 14 15:04:19 BST 2015
Version: 222-1
On Sat, 28 Sep 2013 02:17:00 +0200 Michael Biebl <biebl at debian.org> wrote:
> Package: systemd
> Version: 204-5
> Severity: important
>
> I've been investigating a dist-upgrade failure, where rsyslog fails to
> upgrade properly from its wheezy to jessie version.
> The problem is, that the wheezy version shipped the
> /etc/systemd/system/syslog.service symlink (pointing to rsyslog.service)
> in the package and in jessie we use i-s-h to create the symlink upon
> installation. During the upgrade, there is a time frame where the
> syslog.service symlink has been removed by dpkg, but postinst has not
> been run yet to (re)create the symlink. If at this point a daemon-reload
> is issued (e.g. from another package via invoke-rc.d), systemd loses
> track of the rsyslog process, which is still running.
> So in rsyslog.posinst, when invoke-rc.d rsyslog restart is called,
> systemd thinks rsyslog.service is dead and instead of restarting, starts
> the service. As the old rsyslog process is still running, this fails.
>
> To reproduce the issue, one can follow those steps:
> - Make sure rsyslog is installed and running.
> status: step1.txt
> - rm -f /etc/systemd/system/syslog.service
> - systemctl daemon-reload
> status: step2.txt
> - re-create symlink: systemctl enable rsyslog.service
> - systemctl daemon-reload
> status: step3.txt
> (at this point systemd thinks, rsyslog.service is active (dead), while
> the rsyslog process is still happily running
> - "systemctl restart rsyslog.service" produces
> Job for rsyslog.service failed. See 'systemctl status rsyslog.service'
> and 'journalctl -xn' for details.
>
With the steps above, I'm no longer able to reproduce the issue with
v222, so closing this bug report for that version.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20150714/8a81da5c/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list