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/inittab
file. Probably your gmond
service entry is starting with respawn
. It will respawn every time you kill the process.
Link: To disable the process you have to edit /etc/inittab
and comment out that line. To inform init
about this change you have to send a SIGHUP
to init
:
kill -HUP pid-of-init
The /etc/inittab
file was the configuration file used by the original System V init
daemon. The Upstart init
daemon does not use this file, and instead reads its configuration from files in /etc/init
directory.