Created attachment 5666 [details] A patch over start_stop_daemon.c Here is a patch to implement the following options to start-stop-daemon : //usage: "\n -g,--group GRP Change group" //usage: "\n -r,--chroot DIR Change root directory" //usage: "\n -d,--chdir DIR Change current directory" //usage: "\n -C,--no-close Do not close any file descriptor with -b" //usage: "\n -k,--umask MASK set umask" These options are available in the real debian start-stop-daemon and were missing (see bug #6380).
In my patch, please remove the following line (which is wrong): /* warning : setpriority can legitimately return -1 ! */
I'd really like to see the "-C,--no-close" option implemented. And it's really simple - just don't call bb_daemonize() with DAEMON_DEVNULL_STDIO if the option was given.
Created attachment 9051 [details] updated patch for version 1.33.1 Add updated patch for version 1.33.1.