LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2004, 06:35 PM   #1
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
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,
 
Old 12-17-2004, 07:12 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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
 
Old 12-17-2004, 07:37 PM   #3
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Thank you very much btmiller,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid stops due to signal 6 and signal 25 simplyrahul Linux - Software 3 05-28-2011 01:05 AM
how to send user defined signal in linux feetyouwell Linux - Software 6 12-26-2007 04:40 AM
how to send a signal to a thread stephenwalter Programming 2 10-17-2005 01:07 AM
trying to send signal from linux module andreiij Programming 1 05-02-2005 12:46 PM
Send signal to /dev/dsp marghorp Linux - Hardware 5 05-25-2004 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration