aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2023-11-07 15:59:11 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2023-11-07 15:59:11 +0100
commitda8d1d84fd46e61eec0772ff339fde0952777a5f (patch)
treecf4d0d082917834cdce98f6648db5b830543f867
parent73f28134fc0987474384fde345559d4b34bf5385 (diff)
downloadbusybox-w32-da8d1d84fd46e61eec0772ff339fde0952777a5f.tar.gz
busybox-w32-da8d1d84fd46e61eec0772ff339fde0952777a5f.tar.bz2
busybox-w32-da8d1d84fd46e61eec0772ff339fde0952777a5f.zip
start-stop-daemon: update comment, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--debianutils/start_stop_daemon.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c
index 750167349..8573c6990 100644
--- a/debianutils/start_stop_daemon.c
+++ b/debianutils/start_stop_daemon.c
@@ -17,6 +17,10 @@ One (only) of these must be given:
17 -S,--start Start 17 -S,--start Start
18 -K,--stop Stop 18 -K,--stop Stop
19 -T,--status Check for the existence of a process, return exitcode (since version 1.16.1) 19 -T,--status Check for the existence of a process, return exitcode (since version 1.16.1)
20 0 - program is running
21 1 - program is not running and the pid file exists.
22 3 - program is not running.
23 4 - can't determine program status.
20 24
21Search for matching processes. 25Search for matching processes.
22If --stop is given, stop all matching processes (by sending a signal). 26If --stop is given, stop all matching processes (by sending a signal).
@@ -45,9 +49,10 @@ Options which are valid for --start only:
45 -a,--startas NAME argv[0] (defaults to EXECUTABLE) 49 -a,--startas NAME argv[0] (defaults to EXECUTABLE)
46 -b,--background Put process into background 50 -b,--background Put process into background
47 -O,--output FILE Redirect stdout and stderr to FILE when forcing the 51 -O,--output FILE Redirect stdout and stderr to FILE when forcing the
48 daemon into the background (since version 1.20.6). Only 52 daemon into the background (since version 1.20.6).
49 relevant when using --background. 53 Requires --background and absolute pathname (tested with 1.21.22).
50 Probably O_CREAT|O_TRUNC? What if execv fails - where does error msg go? "Old" stderr? FILE? Nowhere? 54 Uses O_CREAT|O_APPEND!
55 If execv fails, error message goes to FILE.
51 -N,--nicelevel N Add N to process' nice level 56 -N,--nicelevel N Add N to process' nice level
52 -c,--chuid USER[:[GRP]] Change to specified user [and group] 57 -c,--chuid USER[:[GRP]] Change to specified user [and group]
53 -m,--make-pidfile Write PID to the pidfile 58 -m,--make-pidfile Write PID to the pidfile
@@ -66,6 +71,11 @@ Options which are valid for --start only:
66 When not specified, start-stop-daemon will change directory to the 71 When not specified, start-stop-daemon will change directory to the
67 root directory before starting the process. 72 root directory before starting the process.
68 ^^^^ Seems to be false, no default "/" chdir is done. 73 ^^^^ Seems to be false, no default "/" chdir is done.
74 Tested -S with 1.21.22:
75 "start-stop-daemon -S -n pwd -a /bin/pwd" is the minimum needed to run pwd.
76 "start-stop-daemon -S -n pwd -x /bin/pwd" works too.
77 "start-stop-daemon -S -a /bin/pwd -x /bin/pwd" works too.
78 Earlier versions were less picky (which?)
69 79
70Options which are valid for --stop only: 80Options which are valid for --stop only:
71 -s,--signal SIG Signal to send (default:TERM) 81 -s,--signal SIG Signal to send (default:TERM)