GNOME Bugzilla – Bug 700152
killall gdm keeps other gdm launched processes running, preventing it from being started again
Last modified: 2013-05-23 20:48:17 UTC
If I run:
Some processes launched by gdm keep running (like gdm-slave, gnome-session --mode=gdm...), and, then, gdm cannot be started again if I don't run:
pkill -u gdm
This is a problem with using start-stop-daemon (from debian or Gentoo) to restart gdm process. What is the proper way to kill gdm then?
Pressing Ctrl+C works, but running kill -INT doesn't (it keeps running gdm processes running as root, while killing those run as gdm user). Only killing with negative pid value ("kill -- -pid") works :/
I thought Ctrl+C was using INT, but some kind of difference looks to be present. Do you know what signal is using Ctrl+C if not "INT"? That one should work using kill...
Use whatever your init system provides to control multi-process services.
For systemd systemctl stop gdm works fine
And, do you have any idea about why it doesn't behave normally when I try to kill it?
Or how is systemd killing it :)
systemd creates a cgroup for each service, and uses that to reliably kill all the processes belonging to the the service.
really not a gdm bug
Are you sure it's not a gdm problem to not be able to terminal its launched processes when "gdm" one is terminated?