start-stop-daemon (s-s-d) currently close stdin/stdout/stderr file descriptors when executing a program. It would be useful to provide an option in s-s-d to alter that behavior. Here's a related Debian bug report for their implementation of s-s-d: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627333 If you search on stackoverflow and others, you'll see that this feature is frequently requested.
(In reply to comment #0) > start-stop-daemon (s-s-d) currently close stdin/stdout/stderr file descriptors > when executing a program. > It would be useful to provide an option in s-s-d to alter that behavior. > > Here's a related Debian bug report for their implementation of s-s-d: > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627333 > > If you search on stackoverflow and others, you'll see that this feature is > frequently requested. *Which exactly* feature?
Which feature? The one that is the subject of this bug report, i.e. to "support redirection of start-stop-daemon I/O streams". Some reports: http://stackoverflow.com/questions/8251933/how-can-i-log-the-stdout-of-a-process-started-by-start-stop-daemon http://stackoverflow.com/questions/16069314/start-stop-daemon-redirect-stderr-from-php-script
I submitted a patch for this feature in the bug #7430
The standard Debian 'start-stop-daemon' supports the "-C, --no-close' option for this. Implementation is pretty trivial - just don't call bb_daemonize() with DAEMON_DEVNULL_STDIO if the option was given.