Any way to do this with xinetd?

"Leland Lucius" <[email protected]> Tue, 30 Sep 2003 17:45:20 -0500
Newsgroups gmane.network.xinetd
Message-ID <[email protected]>
I have a server that normal runs as a daemon, but it really only needs to run once a day.  The rest
of the day the resources it uses could be given to other processes.  So, I thought I'd try running
it from xinetd.  Unfortunately, when it gets started it tries to listen on the same port that xinetd
is listening on.

This is all expected behavior.  I was just wondering if there was a way to make xinetd listen for a
connection, not accept it, release the port, start the server, wait, rebind to the port when the
server ends, and starting listening again.

I've played around with "wait=yes|no" but it doesn't quite do what I need.

I know, probably not doable.  Just thought I'd ask.

Thanks much,

Leland