[systemd-devel] [PATCH 1/2] systemd: added new dependency StoppedBy

Lennart Poettering lennart at poettering.net
Tue Jul 3 03:38:26 PDT 2012


On Tue, 03.07.12 12:04, Michal Sekletar (msekleta at redhat.com) wrote:

Heya,

> 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 StoppedBy=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.

Looks good, but could you please update the man page accordingly, in the
same patch?

Thanks!

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list