From 85e9a1010d16064ce435b84f02dc585bc645aade Mon Sep 17 00:00:00 2001 From: Michal Sekletar Date: Fri, 20 Jul 2012 15:55:01 +0200 Subject: systemd: added new dependency PartOf This should address TODO item "new dependency type to "group" services in a target". Semantic of new dependency is as follows. Once configured it creates dependency which will cause that all dependent units get stopped if unit they all depend on is stopped or restarted. Usual use case would be configuring PartOf=some.target in template unit file and WantedBy=some.target in [Install] section and enabling desired number of instances. In this case starting one instance won't pull in target but stopping or starting target(in case of WantedBy is properly configured) will cause stop/start of all instances. --- man/systemd.unit.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'man') diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index 286862006a..bdd8f7d701 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -441,6 +441,21 @@ systemd. + + PartOf= + + Configures dependency + on other unit. When systemd stops or + restarts unit listed here, stop or + restart is propagated to dependent + units. Note that this is one way + dependency and changes to dependent + units does not affect listed unit. If + something else is desired, please + use some other type of dependency. + + + Conflicts= -- cgit v1.2.3-54-g00ecf