diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-06 05:06:40 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-06 05:06:40 +0200 |
commit | 9a1ac7b9ae2fb218170d1bd106d5351a76d03a95 (patch) | |
tree | 8ecf93875c1a749fa68e15ccce05d7fa20c49968 /src/dbus-unit.c | |
parent | 59a3e1bc46819d69df6353a86aa0e796cd821024 (diff) |
install: implement --start option
Diffstat (limited to 'src/dbus-unit.c')
-rw-r--r-- | src/dbus-unit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dbus-unit.c b/src/dbus-unit.c index 1f74a2a7ec..63301a0824 100644 --- a/src/dbus-unit.c +++ b/src/dbus-unit.c @@ -272,6 +272,8 @@ static DBusHandlerResult bus_unit_message_dispatch(Unit *u, DBusConnection *conn job_type = JOB_RELOAD; else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1.Unit", "Restart")) job_type = JOB_RESTART; + else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1.Unit", "TryRestart")) + job_type = JOB_TRY_RESTART; else if (UNIT_VTABLE(u)->bus_message_handler) return UNIT_VTABLE(u)->bus_message_handler(u, connection, message); else |