Bug 7430

Summary: Add new options to start-stop-daemon
Product: Busybox Reporter: Vincent G <vincent_galceran>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: enhancement CC: busybox-cvs, glenn.burkhardt
Priority: P5    
Version: 1.22.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: A patch over start_stop_daemon.c
updated patch for version 1.33.1

Description Vincent G 2014-09-11 15:08:52 UTC
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).
Comment 1 Vincent G 2014-09-11 15:24:56 UTC
In my patch, please remove the following line (which is wrong):

/* warning : setpriority can legitimately return -1 ! */
Comment 2 Glenn Burkhardt 2021-07-10 15:23:46 UTC
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.
Comment 3 Glenn Burkhardt 2021-07-11 18:32:32 UTC
Created attachment 9051 [details]
updated patch for version 1.33.1

Add updated patch for version 1.33.1.