Bug#727708: init system thoughts
Tollef Fog Heen <tfheen@err.no> writes:
> I believe you can do this fairly easily.
> A is the service that needs to be reloaded when a network device shows
> up. In A's service file, have ReloadPropagatedFrom=network.target and
> then make your ifup@.service include an ExecStart=systemctl reload
> network.target. You probably want the same for ExecStop too, to handle
> interfaces going away.
Oh, thank you! I didn't know about ReloadPropagatedFrom= and
PropagatesReloadTo=. That looks quite a bit like an event. :)
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: