summaryrefslogtreecommitdiffstats
path: root/src/core/dbus-kill.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-07-30 02:50:44 +0200
committerLennart Poettering <lennart@poettering.net>2013-07-30 02:54:56 +0200
commitc3df8d3dde5a032b382b3f59c016c1d0b7741ae8 (patch)
treefbffc7094f2ae2ab8e8a47250e47e34f3143a1f8 /src/core/dbus-kill.c
parentcore: open up SendSIGHUP property for transient units (diff)
downloadsystemd-c3df8d3dde5a032b382b3f59c016c1d0b7741ae8.tar.xz
systemd-c3df8d3dde5a032b382b3f59c016c1d0b7741ae8.zip
core: make sure scope attributes survive a reload
Diffstat (limited to 'src/core/dbus-kill.c')
-rw-r--r--src/core/dbus-kill.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/dbus-kill.c b/src/core/dbus-kill.c
index beae7da850..80e15e3fca 100644
--- a/src/core/dbus-kill.c
+++ b/src/core/dbus-kill.c
@@ -55,8 +55,11 @@ int bus_kill_context_set_transient_property(
if (mode != UNIT_CHECK) {
dbus_bool_t b;
+
dbus_message_iter_get_basic(i, &b);
c->send_sighup = b;
+
+ unit_write_drop_in_format(u, mode, name, "[Scope]\nSendSIGHUP=%s\n", yes_no(b));
}
return 1;
@@ -68,8 +71,11 @@ int bus_kill_context_set_transient_property(
if (mode != UNIT_CHECK) {
dbus_bool_t b;
+
dbus_message_iter_get_basic(i, &b);
c->send_sigkill = b;
+
+ unit_write_drop_in_format(u, mode, name, "[Scope]\nSendSIGKILL4=%s\n", yes_no(b));
}
return 1;