Forks daemon process with progMain main function and passes args to it. If daemon catches SIGHUP signal, listener delegate is called. If daemon catches SIGQUIT, SIGABRT, or any other terminating sygnal, the termListener is called.
terminal
Subject to the terms of the MIT license, as written in the included LICENSE file.
© 2014 DSoftOut
Boilerplate code to start linux daemon. Other platforms will fallback to terminal mode.