I see messages like these in my journal :
Sep 28 17:27:48 localhost kdeinit5: Qt: Session management error: networkIdsList argument is NULL Sep 28 17:27:48 localhost kdeinit5: No DBUS session-bus found. Check if you have started the DBUS server. Sep 28 17:27:48 localhost kdeinit5: The X11 connection broke: I/O error (code 1) Sep 28 17:27:48 localhost sddm: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.
As you can see systemd kills X before killing kdeinit5 which depends on Xorg, and it kills sddm before sddm-helper.
So I want to configure it to kill every thing that depends on Xorg and then kill Xorg, also to kill sddm-helper and then kill sddm.
How to do this ? and is it possible in general to configure it to not kill process Y until process Z is killed where Y needs Z to be running ?
I'm using Arch linux 64bit with the mainline kernel 4.2.2 and KDE plasma 5.
While this doesn't break much, most of the time there is no problem But I'm having some stability issues facing some kernel panics on shutdown or boot and I think if those are solved then my system will be more stable.