[systemd-devel] how to start a service when another sevice stops

Reindl Harald h.reindl at thelounge.net
Fri Nov 30 14:40:33 PST 2012



Am 30.11.2012 23:28, schrieb Khem Raj:
> I have a scenario where, I have foo.service which runs on boot and later bar.service runs and it has to stop
> foo.service which I achieved by declaring it as Conflicts= in the unit file but I would like to restart foo.service
> when bar.service is stopped. I have run out of ideas on how to achieve that. I am looking for help


ExecStopPost=/bin/systemctl start whatever.service

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20121130/99cb4010/attachment.pgp>


More information about the systemd-devel mailing list