Re: [Need Help]: What Systemd service directives to use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rajat,


Take a look at BindsTo, PartOf, PropagatesReloadTo, ReloadPropagatedFrom and <https://www.freedesktop.org/software/systemd/man/systemd.unit.html#PropagatesReloadTo=> OnFailure. I think a combination of these should achieve what you want,

https://www.freedesktop.org/software/systemd/man/systemd.unit.html#BindsTo=<https://www.freedesktop.org/software/systemd/man/systemd.unit.html#BindsTo>



-Sietse

________________________________
From: systemd-devel <systemd-devel-bounces@xxxxxxxxxxxxxxxxxxxxx> on behalf of rajat rastogi <rajat1.iitd@xxxxxxxxx>
Sent: Thursday, August 30, 2018 09:07
To: systemd-devel@xxxxxxxxxxxxxxxxxxxxx
Subject:  [Need Help]: What Systemd service directives to use

Hi,

My name is rajat.

I have below requirement:

There are 2 processes A and B.

For the mentioned processes, below behaviour is required:

1. If process A is restarted then B should also be restarted

2. If process B is restarted then A should also be restarted

For the above-desired behaviour, what Systemd directives I should use? How I can avoid circular dependency if any might appear?

Thanks and Regards,
Rajat Rastogi
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux