| previous | contents | up | next |
Signals are sent to the process ultimately by the kernel. The receiving process has to be programmed such that it can catch a signal and take a certain action depending on which signal was sent.
Here is a list of common signals and their numerical values:
SIGHUP 1 Hangup SIGINT 2 Interrupt SIGKILL 9 Kill (cannot be caught or ignore) SIGTERM 15 Terminate (termination signal from SIGKILL)(Many more signals exist; these are the most commonly used ones.)
You send a running process a signal using the Unix kill command. The basic usage is
kill -<VALUE> <PID_OF_THE_PROCESS>
|
Example - The most common use of signals is to send the HUP signal (1) to
a long running daemon to make it reread its configuration file.
We'll do this exercise in light sysadmin tasks.
Run the script uau_signal from |
| previous | contents | up | next |