LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is hup signal? How to send one to squid? (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-hup-signal-how-to-send-one-to-squid-267536/)

Niceman2005 12-17-2004 06:35 PM

What is hup signal? How to send one to squid?
 
Dear All,

I tried to follow an instruction that says:
"send Squid a HUP signal to respawn squidGuard"

What is mean by that and how should I carry it out?

Thanks in advance,

btmiller 12-17-2004 07:12 PM

man kill will help you out here. Kill is actually slightly mis-named, it doesn't necessarily terminate a process, it sends it a signal of a particular type. A signal is just a way of notifying a running program that something has happened, like an invalid memory access or an interrupted system call or whatever (see kill -l for a list of all signals). Anyhow, to make a very long story short, to send SIGHUP to squid, you would do

kill -HUP <pid of squid>

or, to save yourself from having to look up the PID:

killall -HUP squid

Niceman2005 12-17-2004 07:37 PM

Thank you very much btmiller,


All times are GMT -5. The time now is 06:16 AM.