Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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 )=-


Comment on Re^2: My daemon will not restart
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://668114]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-09-21 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (173 votes), past polls