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

2018-08-30 Thread rajat rastogi
t; Cc: systemd-devel@lists.freedesktop.org > Subject: Re: [systemd-devel] [Need Help]: What Systemd service directives > to use > > Hi Sietse, > > Thanks for reply. > > So if use mentioned directives as below > > A.service file > -- > > PropagatesR

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

2018-08-30 Thread Sietse van Zanen
ietse From: rajat rastogi Sent: Thursday, August 30, 2018 11:24 To: Sietse van Zanen Cc: systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] [Need Help]: What Systemd service directives to use Hi Sietse, Thanks for reply. So if use mentioned directives as below A.service

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

2018-08-30 Thread rajat rastogi
Hi Sietse, Thanks for reply. So if use mentioned directives as below A.service file -- PropagatesReloadTo=B B.service file PropagatesReloadTo=A Will not it create a loop? If yes, how to avoid it. I will re-phrase the requirements: 1. If process A is restart

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

2018-08-30 Thread Sietse van Zanen
Hi Rajat, Take a look at BindsTo, PartOf, PropagatesReloadTo, ReloadPropagatedFrom and OnFailure. I think a combination of these should achieve what you want, https://www.freedesktop.org/software/systemd/m