(In reply to Franck Bui from comment #4) > > * It is not possible to recognize stop from restart just by listening on > > dbus. It was rather ugly way to detect it anyway. > > I'm wondering if this couldn't be implemented though... 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. > You meant that if A.service has "BindsTo=B.service", A is stopped if B is > restarted ? 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.