| kill kills a process by its process id. After a configuration file is
modified, you can send a signal to the program to inform it that changes have been made
and that it should reread the file. This is done using the kill
command. The first thing you need is the process id of the program.
This example shows how to restart inetd after a change has been made to /etc/inetd.conf.
[root@ns:~] # ps -auwx | grep inetd
root 1368 2.3 1.0 176 132 p1 R+ 12:51PM 0:00.14 grep inetd
root 128 0.0 0.0 212 0 ?? IWs - 0:00.00 (inetd)
[root@ns:~] # kill -HUP 128
In this example, the process id for inetd is 128. The
other process is the grep command.
For more information about the kill command, see man
kill. |