Russ Allbery wrote:
Sylvain Garcia <[EMAIL PROTECTED]> writes:
Thanks for your anwswer
How verify if the the program start by init script wait an entry on
standard input; because when use init y hand this script work perfectly.
Ah, hm. This may be a different problem, then. Some daemons don't close
file descriptors, and Debian maintainer scripts sometimes have other file
descriptors open. This can create a situation where the maintainer script
waits for the daemon to close the file descriptor and hence hangs.
Often adding:
# Make sure we don't leave file descriptors open.
exec 3>/dev/null
exec </dev/null
to the start of the init script will fix this problem. That's kind of a
hack, but without modifying the daemon, I'm not aware of a better fix.
Thanks all for your answer, It's work.
I have modify my init script with [pathToTheScriptDaemon] 3> /dev/null
Thanks;
--
Sylvain Garcia
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]