I have some applications that are launched by systemd -user. These are the applications that I want to exit cleanly on every reboot or when exiting X. google-chrome is one of them. In my [Service] section, I have: KillMode=process But whenever I use 'systemctl --user stop chrome' or 'systemctl --user default', on relaunch, chrome would complain about not being shutdown correctly.. I fixed this by adding KillSignal=SIGTERM in addition to KillMode. Odd that I had to add that since the Man page told me that KillSignal already defaults to SIGTERM.
Hmm I'm marking this as INVALID because I tested this again, and it seems to work.. Either it works intermittenly, or I got mixed up with bug 77416
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.