(In reply to Michal Srb from comment #5) > > I guess it could be. If systemd-logind would send some signal saying "Hey I > am going away and not coming back any time soon.", we could listen for that. > > It does not solve the case when systemd-logind crashes, but in my opinion we > shouldn't try too hard in that case. If such important component crashes, I > would expect anything can happen, so why should X server have some special > safety against it. Might be worth to ask if upstream would accept to implement such signal. > With BindsTo I am observing this: > * If B is stopped, then A is stopped. Good, we want that. > * If B is restarted, then A is restarted. Bad, we don't want that. Hmm... I'm not sure what the right behavior should be: currently I dont see the point to restart A if B is restarted. A should be stopped in case the restart of B fails though.