1821808 Members
3156 Online
109638 Solutions
New Discussion юеВ

HUP signals

 
Chern Jian Leaw
Regular Advisor

HUP signals

Hi,

How do I send a HUP signal to the process specified in the /etc/inetd.conf file?

I've specifed the /etc/inetd.conf file as:
rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon

I trying to setup a rsync server.

Could please help me out in this matter?

Thanks.
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: HUP signals

Kill -1 will send a SIGHUP.

Pete

Pete
Paula J Frazer-Campbell
Honored Contributor

Re: HUP signals

Hi

Man kill

signum signame Name Description
___________________________________________________________________________
0 SIGNULL Null Check access to pid
1 SIGHUP Hangup Terminate; can be trapped
2 SIGINT Interrupt Terminate; can be trapped
3 SIGQUIT Quit Terminate with core dump; can be trapped
9 SIGKILL Kill Forced termination; cannot be trapped
15 SIGTERM Terminate Terminate; can be trapped
24 SIGSTOP Stop Pause the process; cannot be trapped
25 SIGTSTP Terminal stop Pause the process; can be trapped
26 SIGCONT Continue Run a stopped process
Paula
If you can spell SysAdmin then you is one - anon
John Palmer
Honored Contributor

Re: HUP signals

You can also just run:
inetd -c

See man inetd.

Regards,
John
fg_1
Trusted Contributor

Re: HUP signals

Run: inetd -c

This will re-read the configuration file inetd.conf thus enabling your change.

This is much cleaner than a NOHUP and usually is the preferred method for any changes in
inetd.conf.

Frank G.
James George_1
Trusted Contributor

Re: HUP signals

Hi

To send the HUP signal...

# ps -ef | grep ( your process / daemon )

# kill -HUP (pid of your process / daemon)

This will restart / resync the daemon

Rgds / James
forum is for techies .....heaven is for those who are born again !!