I try to kill a process with sudo kill 30602. But after I killed it I use ps aux | grep gmond to check, it appear again with another pid.That's like:
ganglia 30997 0.0 0.1 121812 2128 ? Ssl 16:05 0:00 /usr/sbin/gmond --pid-file=/var/run/ganglia-monitor.pid
Whatever how I kill it, it just appear again with another pid, even with kill -9.
What's the problem? And how to solve this?
You should change the entry in the
/etc/inittabfile. Probably yourgmondservice entry is starting withrespawn. It will respawn every time you kill the process.Link: To disable the process you have to edit
/etc/inittaband comment out that line. To informinitabout this change you have to send aSIGHUPtoinit:kill -HUP pid-of-initThe
/etc/inittabfile was the configuration file used by the original System Vinitdaemon. The Upstartinitdaemon does not use this file, and instead reads its configuration from files in/etc/initdirectory.