Hup


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Hup
# 1  
Old 07-09-2001
Question Hup

I am curious about HUP..... kill -HUP pid
What exactly does it do?? Does it stop the process and restart it from the beginning or from where it stopped? Thanks
# 2  
Old 07-09-2001
It restarts the process from the begging (reloading any config files it uses)

Code:
/HUP
...skipping
     name. There is no default. Typing kill  does not send a sig-
     nal  to  the  current  job. If the signal being sent is TERM
     (terminate) or HUP (hangup), then the job or process is sent
     a CONT (continue) signal as well.

# 3  
Old 07-09-2001
Was this in the man pages...if so sorry for wasting your time, I was reading about the kill command and I don't have a unix box at my job to use the man command but wanted the answer now, and this site usually gets the answers to my simple questions quickly. Thanks for the info.
# 4  
Old 07-10-2001
for future referance i would also check out solarisguide.com they have online man pages.
# 5  
Old 07-12-2001
I'm curious. I was under the impression that it was simply a certain type of kill signal, in this case on a "hang up", or disconnection by the user running the process. I know certain processes restart on a HUP signal, but is that always the case, or is that simply how they handle that signal in a specific instance? For example , if I killall -HUP inetd, I know it will restart the inted daemon, re-reading all config files. But when I killall -HUP pppd, it literally hangs up...

Am I mistaken?
# 6  
Old 07-12-2001
isnt your pppd something you have to initiate via entering a command to tell it to dial or does it auto connect as soon as the daemon is started?

# 7  
Old 07-12-2001

Well, that was only an example. Regardless, will signal 1 (HUP) always cause a process to restart, or only in some cases? I was under the impression that it killed your processes when you logged out, thus the "nohup" utility for keeping your jobs running upon logout.

For example, if I telnet to nether.net, sign in, and run "mail", it tracks my processes. Say my session is dropped, or I close my session from my end. Isn't the HUP signal sent to "mail" to kill it, as opposed to TERM(15), or INT(2)?

I know that to restart, say, inetd, for example I can kill -1 it, but not all programs follow this convention. Is that correct?

 
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Solaris

sudo for permission kill -HUP

Hi, I'm trying to provide "/usr/bin/kill -HUP" command to one of the user using sudo file. I have configured sudo as following: $cat /etc/sudoers User_Alias AA=conadmin Cmnd_Alias KILL1=/usr/bin/kill -HUPAA ALL=NOPASSWD:KILL1 When I login as the user and execute 'sudo -l' command, it... (2 Replies)
Discussion started by: mohzub
2 Replies

2. UNIX for Dummies Questions & Answers

Help with HUP and SEGV.

Hello - I need to know the detail of HUP and SEGV. I know HUP is Hangup and can be use to kill a Unix login session remotely by sending a hangup signal to the process running the login session. Could someone tell me in detail prupose of HUP and SEGV (segmentation violation)? I need to... (1 Reply)
Discussion started by: namasteall2000
1 Replies

3. UNIX for Advanced & Expert Users

Trapped Signal HUP

We encountered an issue in our project while using the Interix UNIX (SFU 3.5) and explained our query below. We would be happy if anybody helps us to troubleshoot the problem J In our code the trapping signal for all signals like HUP, INT, QUIT, ILL, TRAP, ABRT, EXCEPT, etc., is initialized in... (4 Replies)
Discussion started by: RAMESHPRABUDASS
4 Replies

4. Linux

syslog hup

Hi All, I modified /etc/syslog.conf and execute kill -HUP syslogd_PID. There's nothing changes on the PID when I did ps -ef|grep syslogd. It's the same. Do you think it restarted the process of syslogd? Thanks in advance. (3 Replies)
Discussion started by: itik
3 Replies

5. UNIX for Dummies Questions & Answers

samba, swat. how to send a HUP to inetd ?

solaris can't support pkill command:( (2 Replies)
Discussion started by: cloudsmell
2 Replies
Login or Register to Ask a Question