[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ftpd and supervise.
* seanc <seanc@pangea.ca> [010201 07:47]:
> I'm having a b#$%h of a time getting ftpd to live under supervise (djb
> daemon tools). It seems to just start it self over and over and over
> though when i run it from the command line on a different port (like 999)
> I can at least connect to it...
Sean, if I am not mistaken, supervise opens a pipe and gives that pipe's
filedescriptor to processes before exec'ing the new program.
Many daemons are programmed to walk the list of available file
descriptors and close them --- based on a wise suggestion in Steven's
Advanced Programming in the Unix Environment.
If ftpd does this, as I fully expect it does, supervise will think ftpd
dies as soon as ftpd closes the filedescriptor with the pipe.
--
``Oh Lord; Ooh you are so big; So absolutely huge; Gosh we're all
really impressed down here, I can tell you.''