# Goals
I want systemd to know if a service is up when it's up
I want systemd to know if a service is down when it's down
If a service crashes I want drkonqi as before
/We ideally/ we want systemd handling the restarts as it's a lot smarter than our internal app method, but that's something we can itterate on.
# Current state
ExecStart=/opt/kde5/bin/plasmashell
causes drkonqi to work, plasma to restart, but systemd thinks the process is degraded and down
-------
ExecStart=/opt/kde5/bin/plasmashell -n
Restart=alwaysin-app method
causes plasmashell to restart, but we don't get drkonqi :(# The cause of the bug right now
>Mar 27 12:15:12 david-desktop systemd[703]: plasmashell.service: Succeeded.
>Mar 27 12:15:12 david-desktop systemd[703]: plasmashell.service: Consumed 6.242s CPU timeWe use the DBus name to know when a service is up. We definitely want this.
>Mar 27 12:15:12 david-desktop plasmashell[77501]: org.kde.drkonqi: The specified process does not exist.
---------
ExecStart=/opt/kde5/bin/plasmashell -nHowever, implicitly that also determines when a process is stopped. As plasmashell (for example) crashes the bus name is lost. Then the entire cgroup is killed in order to restart, which would include any drkonqi
Restart=on-failure
Doesn't work, even though it should. On sending SIGSEGV systemd receives sigterm, because kcrash meddles with it. We also still don't get drkonqi