dbus-kill.c revision c3df8d3dde5a032b382b3f59c016c1d0b7741ae8
97a9a944b5887e91042b019776c41d5dd74557aferikabele/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive This file is part of systemd.
a945f35eff8b6a88009ce73de6d4c862ce58de3cslive Copyright 2012 Lennart Poettering
5a58787efeb02a1c3f06569d019ad81fd2efa06end systemd is free software; you can redistribute it and/or modify it
5a58787efeb02a1c3f06569d019ad81fd2efa06end under the terms of the GNU Lesser General Public License as published by
5a58787efeb02a1c3f06569d019ad81fd2efa06end the Free Software Foundation; either version 2.1 of the License, or
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen (at your option) any later version.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen systemd is distributed in the hope that it will be useful, but
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen WITHOUT ANY WARRANTY; without even the implied warranty of
5a58787efeb02a1c3f06569d019ad81fd2efa06end MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5a58787efeb02a1c3f06569d019ad81fd2efa06end Lesser General Public License for more details.
d229f940abfb2490dee17979e9a5ff31b7012eb5rbowen You should have received a copy of the GNU Lesser General Public License
3f08db06526d6901aa08c110b5bc7dde6bc39905nd along with systemd; If not, see <http://www.gnu.org/licenses/>.
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7ndstatic DEFINE_BUS_PROPERTY_APPEND_ENUM(bus_kill_append_mode, kill_mode, KillMode);
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd { "KillMode", bus_kill_append_mode, "s", offsetof(KillContext, kill_mode) },
5a58787efeb02a1c3f06569d019ad81fd2efa06end { "KillSignal", bus_property_append_int, "i", offsetof(KillContext, kill_signal) },
5a58787efeb02a1c3f06569d019ad81fd2efa06end { "SendSIGKILL", bus_property_append_bool, "b", offsetof(KillContext, send_sigkill) },
5a58787efeb02a1c3f06569d019ad81fd2efa06end { "SendSIGHUP", bus_property_append_bool, "b", offsetof(KillContext, send_sighup) },
9b6a3a558cc90ffdaa0b50bd02546ffec424ded7slive const char *name,
5a58787efeb02a1c3f06569d019ad81fd2efa06end if (dbus_message_iter_get_arg_type(i) != DBUS_TYPE_BOOLEAN)
ffb01336be79c64046b636e59fa8ddca8ec029edsf unit_write_drop_in_format(u, mode, name, "[Scope]\nSendSIGHUP=%s\n", yes_no(b));
117c1f888a14e73cdd821dc6c23eb0411144a41cnd if (dbus_message_iter_get_arg_type(i) != DBUS_TYPE_BOOLEAN)
5a58787efeb02a1c3f06569d019ad81fd2efa06end unit_write_drop_in_format(u, mode, name, "[Scope]\nSendSIGKILL4=%s\n", yes_no(b));