aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-10-18 19:33:06 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-10-18 19:33:06 +0000
commita294905992b97443003a4f43214efe47da83c423 (patch)
treee25a68be710fe88ce6db0f4191caa47ba5f43d98 /include
parent1d013457cd7513d4422a73cc06fc61c92974c350 (diff)
downloadbusybox-w32-a294905992b97443003a4f43214efe47da83c423.tar.gz
busybox-w32-a294905992b97443003a4f43214efe47da83c423.tar.bz2
busybox-w32-a294905992b97443003a4f43214efe47da83c423.zip
Commit the start-stop-daemon applet. This was contributed by David
Kimdon <dwhedon@gordian.com> on october 7th -- the day I was fired from Lineo. So it seems I totally forgot about this patch until now. Sorry about that David! git-svn-id: svn://busybox.net/trunk/busybox@3546 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h14
2 files changed, 17 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 461c878df..5ecfe3cba 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -386,6 +386,9 @@
386#ifdef BB_SORT 386#ifdef BB_SORT
387 APPLET(sort, sort_main, _BB_DIR_USR_BIN) 387 APPLET(sort, sort_main, _BB_DIR_USR_BIN)
388#endif 388#endif
389#ifdef BB_START_STOP_DAEMON
390 APPLET_ODDNAME("start-stop-daemon", start_stop_daemon_main, _BB_DIR_SBIN, start_stop_daemon)
391#endif
389#ifdef BB_STTY 392#ifdef BB_STTY
390 APPLET(stty, stty_main, _BB_DIR_BIN) 393 APPLET(stty, stty_main, _BB_DIR_BIN)
391#endif 394#endif
diff --git a/include/usage.h b/include/usage.h
index 0d830c9cc..5e514274a 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1458,6 +1458,20 @@
1458 "e\n" \ 1458 "e\n" \
1459 "f\n" 1459 "f\n"
1460 1460
1461#define start_stop_daemon_trivial_usage \
1462 "[OPTIONS]"
1463#define start_stop_daemon_full_usage \
1464 "Program to start and stop services.\n"\
1465 "Options:\n" \
1466 "-S\t\t\tstart\n"\
1467 "-K\t\t\tstop\n"\
1468 "-x <executable>\t\tprogram to start/check if it is running\n"\
1469 "-p <pid-file>\t\tpid file to check\n"\
1470 "-u <username>|<uid>\tstop this user's processes\n"\
1471 "-n <process-name>\tstop processes with this name\n"\
1472 "-s <signal>\t\tsignal to send (default 15)\n"\
1473 "-a <pathname>\t\tprogram to start (default <executable>)\n"
1474
1461#define stty_trivial_usage \ 1475#define stty_trivial_usage \
1462 "[-a|g] [-F DEVICE] [SETTING]..." 1476 "[-a|g] [-F DEVICE] [SETTING]..."
1463#define stty_full_usage \ 1477#define stty_full_usage \