diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-18 04:58:01 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-19 04:08:07 +0200 |
commit | 5632e3743db350a67478acc107d76cdf648a1f99 (patch) | |
tree | e7efad268223470ca3053db650a2c7b3ad9c90c4 /src/dbus-unit.c | |
parent | b9975629f03a43d4c6b14fdb42eb8dd5a30af28f (diff) |
systemctl: introduce reset-maintenance command
Diffstat (limited to 'src/dbus-unit.c')
-rw-r--r-- | src/dbus-unit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dbus-unit.c b/src/dbus-unit.c index ce34130993..2dcd032a45 100644 --- a/src/dbus-unit.c +++ b/src/dbus-unit.c @@ -298,6 +298,13 @@ static DBusHandlerResult bus_unit_message_dispatch(Unit *u, DBusConnection *conn } else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1.Unit", "ReloadOrTryRestart")) { reload_if_possible = true; job_type = JOB_TRY_RESTART; + } else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1.Unit", "ResetMaintenance")) { + + unit_reset_maintenance(u); + + if (!(reply = dbus_message_new_method_return(message))) + goto oom; + } else if (UNIT_VTABLE(u)->bus_message_handler) return UNIT_VTABLE(u)->bus_message_handler(u, connection, message); else |