in reply to Backgrounding (daemonizing?) a Net::server
Does the server open it's socket at the end of initialization (i.e. when it's ready to process requests?) If so, you could write a very simple script that just tries to open the socket.
If it gets "connection refused" it waits a second, if not, it exits - since the server is now ready to talk to your real client.
If it opens the socket much before it's ready to talk, does it give any other indication when it's ready? If not, perhaps you could write a very simple client (just enough to open a connection, perform the simplest operation and close the connection) - and start the real client once the simple one succeeds.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Backgrounding (daemonizing?) a Net::server
by PetaMem (Priest) on Mar 28, 2004 at 11:42 UTC | |
by matija (Priest) on Mar 28, 2004 at 17:39 UTC |