added hup handler to init
do not start rc if this is a restart
could not get haskell rc to work with getAnyProcessStatus
using sigwait makes the code beautiful
removed testing variables
using custom interruptibleGetAnyProcessStatus to mimic C code
renamed haskell rc to hrc
renamed haskell rc
reverted the previous commit
added argv[0] parameter to signal handlers
added comment
added pmon to monitor the respawn processes
rc hands off to pmon
renamed pmon to smon
renamed respawn to svc and added sh fallback if there is no smon
added hsvc.hs instead of svc.c
fix bugs
working restart
replaced MVar with Chan
renamed hsvc.hs to respawn.hs