summaryrefslogtreecommitdiff
path: root/src/core/dbus-scope.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-01-31 17:45:13 +0100
committerLennart Poettering <lennart@poettering.net>2014-01-31 17:48:36 +0100
commit2d4a39e759c4ab846ad8a546abeddd40bc8d736e (patch)
tree6076c82b7c28bc2f80570b72427cc27a2ed28357 /src/core/dbus-scope.h
parentfb818b2ea194ec182aa3e776d38883dc615910a1 (diff)
core: introduce new stop protocol for unit scopes
By specifiy a Controller property when creating the scope a client can specify a bus name that will be notified with a RequestStop bus signal when the scope has been asked to shut down, instead of sending SIGTERM to the scope processes themselves. https://bugzilla.redhat.com/show_bug.cgi?id=1032695
Diffstat (limited to 'src/core/dbus-scope.h')
-rw-r--r--src/core/dbus-scope.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/dbus-scope.h b/src/core/dbus-scope.h
index 7e8f0053da..33beda47b7 100644
--- a/src/core/dbus-scope.h
+++ b/src/core/dbus-scope.h
@@ -28,3 +28,5 @@ extern const sd_bus_vtable bus_scope_vtable[];
int bus_scope_set_property(Unit *u, const char *name, sd_bus_message *i, UnitSetPropertiesMode mode, sd_bus_error *error);
int bus_scope_commit_properties(Unit *u);
+
+int bus_scope_send_request_stop(Scope *s);