From c2af1ee03667fbcf5bd456ea26e9f9e317a892a1 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 18 Oct 2001 19:33:06 +0000 Subject: Commit the start-stop-daemon applet. This was contributed by David Kimdon 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! --- include/applets.h | 3 +++ include/usage.h | 14 ++++++++++++++ 2 files changed, 17 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index 461c878..5ecfe3c 100644 --- a/include/applets.h +++ b/include/applets.h @@ -386,6 +386,9 @@ #ifdef BB_SORT APPLET(sort, sort_main, _BB_DIR_USR_BIN) #endif +#ifdef BB_START_STOP_DAEMON + APPLET_ODDNAME("start-stop-daemon", start_stop_daemon_main, _BB_DIR_SBIN, start_stop_daemon) +#endif #ifdef BB_STTY APPLET(stty, stty_main, _BB_DIR_BIN) #endif diff --git a/include/usage.h b/include/usage.h index 0d830c9..5e51427 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1458,6 +1458,20 @@ "e\n" \ "f\n" +#define start_stop_daemon_trivial_usage \ + "[OPTIONS]" +#define start_stop_daemon_full_usage \ + "Program to start and stop services.\n"\ + "Options:\n" \ + "-S\t\t\tstart\n"\ + "-K\t\t\tstop\n"\ + "-x \t\tprogram to start/check if it is running\n"\ + "-p \t\tpid file to check\n"\ + "-u |\tstop this user's processes\n"\ + "-n \tstop processes with this name\n"\ + "-s \t\tsignal to send (default 15)\n"\ + "-a \t\tprogram to start (default )\n" + #define stty_trivial_usage \ "[-a|g] [-F DEVICE] [SETTING]..." #define stty_full_usage \ -- cgit v1.1