diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-08 23:18:05 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-08 23:18:05 +0200 |
commit | 4974917c5e892929d7abef244d9aef9094b947f4 (patch) | |
tree | 09147e997be0add4fcbd8513b495754df8b284b3 /debianutils | |
parent | 89d8753c550b8f46e525bcab8ad0f9b016d89c49 (diff) | |
download | busybox-w32-4974917c5e892929d7abef244d9aef9094b947f4.tar.gz busybox-w32-4974917c5e892929d7abef244d9aef9094b947f4.tar.bz2 busybox-w32-4974917c5e892929d7abef244d9aef9094b947f4.zip |
start-stop-daemon: show only short options in --help text
function old new delta
packed_usage 31675 31607 -68
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'debianutils')
-rw-r--r-- | debianutils/start_stop_daemon.c | 42 |
1 files changed, 6 insertions, 36 deletions
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c index 12cf6c3a5..c8b7fa8f2 100644 --- a/debianutils/start_stop_daemon.c +++ b/debianutils/start_stop_daemon.c | |||
@@ -87,44 +87,15 @@ Misc options: | |||
87 | //usage: "[OPTIONS] [-S|-K] ... [-- ARGS...]" | 87 | //usage: "[OPTIONS] [-S|-K] ... [-- ARGS...]" |
88 | //usage:#define start_stop_daemon_full_usage "\n\n" | 88 | //usage:#define start_stop_daemon_full_usage "\n\n" |
89 | //usage: "Search for matching processes, and then\n" | 89 | //usage: "Search for matching processes, and then\n" |
90 | //usage: "-K: stop all matching processes.\n" | 90 | //usage: "-K: stop all matching processes\n" |
91 | //usage: "-S: start a process unless a matching process is found.\n" | 91 | //usage: "-S: start a process unless a matching process is found\n" |
92 | //usage: IF_FEATURE_START_STOP_DAEMON_LONG_OPTIONS( | ||
93 | //usage: "\nProcess matching:" | ||
94 | //usage: "\n -u,--user USERNAME|UID Match only this user's processes" | ||
95 | //usage: "\n -n,--name NAME Match processes with NAME" | ||
96 | //usage: "\n in comm field in /proc/PID/stat" | ||
97 | //usage: "\n -x,--exec EXECUTABLE Match processes with this command" | ||
98 | //usage: "\n in /proc/PID/{exe,cmdline}" | ||
99 | //usage: "\n -p,--pidfile FILE Match a process with PID from the file" | ||
100 | //usage: "\n All specified conditions must match" | ||
101 | //usage: "\n-S only:" | ||
102 | //usage: "\n -x,--exec EXECUTABLE Program to run" | ||
103 | //usage: "\n -a,--startas NAME Zeroth argument" | ||
104 | //usage: "\n -b,--background Background" | ||
105 | //usage: IF_FEATURE_START_STOP_DAEMON_FANCY( | ||
106 | //usage: "\n -N,--nicelevel N Change nice level" | ||
107 | //usage: ) | ||
108 | //usage: "\n -c,--chuid USER[:[GRP]] Change to user/group" | ||
109 | //usage: "\n -m,--make-pidfile Write PID to the pidfile specified by -p" | ||
110 | //usage: "\n-K only:" | ||
111 | //usage: "\n -s,--signal SIG Signal to send" | ||
112 | //usage: "\n -t,--test Match only, exit with 0 if a process is found" | ||
113 | //usage: "\nOther:" | ||
114 | //usage: IF_FEATURE_START_STOP_DAEMON_FANCY( | ||
115 | //usage: "\n -o,--oknodo Exit with status 0 if nothing is done" | ||
116 | //usage: "\n -v,--verbose Verbose" | ||
117 | //usage: ) | ||
118 | //usage: "\n -q,--quiet Quiet" | ||
119 | //usage: ) | ||
120 | //usage: IF_NOT_FEATURE_START_STOP_DAEMON_LONG_OPTIONS( | ||
121 | //usage: "\nProcess matching:" | 92 | //usage: "\nProcess matching:" |
122 | //usage: "\n -u USERNAME|UID Match only this user's processes" | 93 | //usage: "\n -u USERNAME|UID Match only this user's processes" |
123 | //usage: "\n -n NAME Match processes with NAME" | 94 | //usage: "\n -n NAME Match processes with NAME" |
124 | //usage: "\n in comm field in /proc/PID/stat" | 95 | //usage: "\n in comm field in /proc/PID/stat" |
125 | //usage: "\n -x EXECUTABLE Match processes with this command" | 96 | //usage: "\n -x EXECUTABLE Match processes with this command" |
126 | //usage: "\n command in /proc/PID/cmdline" | 97 | //usage: "\n command in /proc/PID/cmdline" |
127 | //usage: "\n -p FILE Match a process with PID from the file" | 98 | //usage: "\n -p FILE Match a process with PID from FILE" |
128 | //usage: "\n All specified conditions must match" | 99 | //usage: "\n All specified conditions must match" |
129 | //usage: "\n-S only:" | 100 | //usage: "\n-S only:" |
130 | //usage: "\n -x EXECUTABLE Program to run" | 101 | //usage: "\n -x EXECUTABLE Program to run" |
@@ -133,18 +104,17 @@ Misc options: | |||
133 | //usage: IF_FEATURE_START_STOP_DAEMON_FANCY( | 104 | //usage: IF_FEATURE_START_STOP_DAEMON_FANCY( |
134 | //usage: "\n -N N Change nice level" | 105 | //usage: "\n -N N Change nice level" |
135 | //usage: ) | 106 | //usage: ) |
136 | //usage: "\n -c USER[:[GRP]] Change to user/group" | 107 | //usage: "\n -c USER[:[GRP]] Change user/group" |
137 | //usage: "\n -m Write PID to the pidfile specified by -p" | 108 | //usage: "\n -m Write PID to pidfile specified by -p" |
138 | //usage: "\n-K only:" | 109 | //usage: "\n-K only:" |
139 | //usage: "\n -s SIG Signal to send" | 110 | //usage: "\n -s SIG Signal to send" |
140 | //usage: "\n -t Match only, exit with 0 if a process is found" | 111 | //usage: "\n -t Match only, exit with 0 if found" |
141 | //usage: "\nOther:" | 112 | //usage: "\nOther:" |
142 | //usage: IF_FEATURE_START_STOP_DAEMON_FANCY( | 113 | //usage: IF_FEATURE_START_STOP_DAEMON_FANCY( |
143 | //usage: "\n -o Exit with status 0 if nothing is done" | 114 | //usage: "\n -o Exit with status 0 if nothing is done" |
144 | //usage: "\n -v Verbose" | 115 | //usage: "\n -v Verbose" |
145 | //usage: ) | 116 | //usage: ) |
146 | //usage: "\n -q Quiet" | 117 | //usage: "\n -q Quiet" |
147 | //usage: ) | ||
148 | 118 | ||
149 | #include <sys/resource.h> | 119 | #include <sys/resource.h> |
150 | 120 | ||