[systemd-devel] propagate reload from other events

Johannes Ernst johannes.ernst at gmail.com
Sat Oct 10 21:14:13 PDT 2015


I understand that if foo.service specifies:

PropagatesReloadTo=bar.service

and I execute “systemctl reload foo”, this will trigger a reload of bar as well. Typically I might do that if I have changed some config file, and I want the daemon(s) to pick it up.

Is there a similar mechanism that triggers a reload in bar when foo stops, or when foo starts, or events like that?

I found a thread from 3 years ago on an OnStop= rule, but I don’t think that made it into the mainline? [1]

My use case is that if I switch from foo.service to foo2.service (both require bar, and are mutually exclusive to each other), I’d like bar to reload.


[1] http://lists.freedesktop.org/archives/systemd-devel/2012-November/007304.html

Thanks for the help, as always,



Johannes.



More information about the systemd-devel mailing list