chiark / gitweb /
systemd: serialize/deserialize forbid_restart value
authorSylvia Else <sylviabz1@cryogenic.net>
Mon, 7 Oct 2013 03:06:35 +0000 (23:06 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Oct 2013 03:41:05 +0000 (23:41 -0400)
commit6aca9a587d4ad40b1c044f99e3714022201b9fd4
tree5dba694bf7853e1329c0a00593e55c447a27d255
parent2b8f6883a17b9386299b7690869ccd8e20fe0347
systemd: serialize/deserialize forbid_restart value

The Service type's forbid_restart field was not preserved by
serialization/deserialization, so the fact that the service should not
be restarted after stopping was lost.

If a systemctl stop foo command has been given, but the foo service
has not yet stopped, and then the systemctl --system daemon-reload was
given, then when the foo service eventually stopped, systemd would
restart it.

https://bugs.freedesktop.org/show_bug.cgi?id=69800
src/core/service.c