Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: My daemon will not restart

by graq (Curate)
on Feb 15, 2008 at 09:22 UTC ( #668114=note: print w/replies, xml ) Need Help??

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

I set up a socket 'manually', just after the $server undef, and before restart:

. . $log->warning('Server has stopped - we need to restart!'); $server = undef; use IO::Socket::INET; use IO::String; my $listen = IO::Socket::INET->new( Listen => 5, LocalAddr => 'localhost', LocalPort => 12345, Proto => 'tcp', ReuseAddr => 1 ); while( 1 ){ $log->warning( "listening....\n" ); sleep 5; } &restart_daemon; . .

The client seems quite happy to connect to this newly created socket..

I am really baffled.

-=( Graq )=-

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://668114]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2017-06-26 03:44 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (572 votes). Check out past polls.