http://qs1969.pair.com?node_id=667984


in reply to Re: My daemon will not restart
in thread My daemon will not restart

This is a good suggestion. If you add:

$server = undef;
right before (or in) the call to &restart_daemon, things might work for you (at least they did in a stripped down version of your code.)