Code: Select all
(signal 2 exit)
I'm not sure about the intention with p_exit not actually exiting in daemonMode.
Assuming there's a good reason for it, one should avoid IOchannel=0 to let the service progress as per normal. Though, then it's seriously hard to make it exit; either import my own exit or, not so gracefully, rely on (/ 0 0).