I'm working on a script that will be run more or less as a daemon on a linux server. E.g. it will be running in the background any time the machine is powered on. Is it possible for me to allow it to catch some of the standard signals, such as HUP? For instance, if a user does:
I would like my script to be able to catch that signal and do something accordingly (e.g. re-read it's config files). Anyone know how to do this?