The simplest way to go is to just have a --foreground command line option which puts the process in this mode where SIGHUP will kill it.
The simplest way to go is to just have a --foreground command line option which puts the process in this mode where SIGHUP will kill it.