https://bugzilla.novell.com/show_bug.cgi?id=812541
https://bugzilla.novell.com/show_bug.cgi?id=812541#c5
--- Comment #5 from Frederic Crozat 2013-04-08 13:48:34 UTC ---
Apr 08 09:34:32 anemoi systemd[1]: Trying to enqueue job
dnsmasq.service/try-restart/replace
Apr 08 09:34:32 anemoi systemd[1]: Job dnsmasq.service/stop finished,
result=canceled
Apr 08 09:34:32 anemoi systemd[1]: Installed new job dnsmasq.service/restart as
906
So, try-restart replaced "stop" by "restart" because it wasn't stopped at the
time try-restart was reached.
The "real" fix (non abortable shutdown / kexec / reboot) will be available in
Factory soon but I can't backport it for 12.3 (changes are too intrusive).
I've asked upstream their opinion on whether try-restart should ack as "no-op"
or "restart" if a "stop" call is pending. There is currently no precise answer
for this so I've sent a mail on systemd-devel mailing list to see if we can
change the behavior or not.
In the mean time, you should probably add something like:
systemd_booting () {
# returns 0 when we boot, 1 in running system
systemctl show -p ActiveState default.target | grep -qi inactive
}
and use it to call systemctl try-restart dnsmasq.service only if system is in
running state..
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.