kill -HUP $pid
sends a SIGHUP to the process with the process id $pid.
This is useful for telling programs that listen for a HUP to re-read their configuration files so that you can seamlessly implement changes transparent to end users. Not all programs will re-read their config files when they recieve a SIGHUP .
You can? also tell a program to ignore a SIGHUP, this can be useful if you want to start a background job from a terminal and close that terminal window (ie: wget, or a daemon/server process that you are debugging) as terminals will send a SIGHUP when you close them.
Leave a Reply
You must be logged in to post a comment.