diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-01 19:47:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-01 19:47:46 +0200 |
commit | c87eba546a33ce7ecd66f0e3b61bdf55ae1389f0 (patch) | |
tree | 8309a2b911264e57f95dcb860983e5f8ea506c40 /src/systemd-interfaces.vala | |
parent | f306f4c40d7004be058678ff3ed90c9c006767e0 (diff) |
dbus: add simplified way to start an arbitrary unit in a single method call
Diffstat (limited to 'src/systemd-interfaces.vala')
-rw-r--r-- | src/systemd-interfaces.vala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/systemd-interfaces.vala b/src/systemd-interfaces.vala index a8aeb75579..7445479911 100644 --- a/src/systemd-interfaces.vala +++ b/src/systemd-interfaces.vala @@ -52,6 +52,11 @@ public interface Manager : DBus.Object { public abstract ObjectPath load_unit(string name) throws DBus.Error; public abstract ObjectPath get_job(uint32 id) throws DBus.Error; + public abstract ObjectPath start_unit(string name, string mode) throws DBus.Error; + public abstract ObjectPath stop_unit(string name, string mode) throws DBus.Error; + public abstract ObjectPath reload_unit(string name, string mode) throws DBus.Error; + public abstract ObjectPath restart_unit(string name, string mode) throws DBus.Error; + public abstract void clear_jobs() throws DBus.Error; public abstract void subscribe() throws DBus.Error; |