From 1e11c34be4decfef8fbda8a8e01cd60def8232e5 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Sun, 11 May 2003 14:52:39 +0000 Subject: minit, a Minimal init system. --- include/applets.h | 9 +++++++++ include/usage.h | 29 +++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index 668c84914..6697be5ee 100644 --- a/include/applets.h +++ b/include/applets.h @@ -358,6 +358,9 @@ #ifdef CONFIG_MESG APPLET(mesg, mesg_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER) #endif +#ifdef CONFIG_MINIT + APPLET(minit, minit_main, _BB_DIR_SBIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_MKDIR APPLET(mkdir, mkdir_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif @@ -388,6 +391,9 @@ #ifdef CONFIG_MSH APPLET_NOUSAGE("msh", msh_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif +#ifdef CONFIG_MSVC + APPLET(msvc, msvc_main, _BB_DIR_BIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_MT APPLET(mt, mt_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif @@ -415,6 +421,9 @@ #ifdef CONFIG_PASSWD APPLET(passwd, passwd_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS) #endif +#ifdef CONFIG_PIDFILEHACK + APPLET(pidfilehack, pidfilehack_main, _BB_DIR_BIN, _BB_SUID_NEVER) +#endif #ifdef CONFIG_PIDOF APPLET(pidof, pidof_main, _BB_DIR_BIN, _BB_SUID_NEVER) #endif diff --git a/include/usage.h b/include/usage.h index e98e8b97c..fde6bbe76 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1430,6 +1430,11 @@ "\ty\tAllow write access to your terminal.\n" \ "\tn\tDisallow write access to your terminal.\n" +#define minit_trivial_usage \ + "[-spPrRC]" +#define minit_full_usage \ + "[-spPrRC]" + #define mkdir_trivial_usage \ "[OPTION] DIRECTORY..." #define mkdir_full_usage \ @@ -1559,6 +1564,25 @@ "$ mount /dev/fd0 /mnt -t msdos -o ro\n" \ "$ mount /tmp/diskimage /opt -t ext2 -o loop\n" +#define msvc_trivial_usage \ + "-[udorspchaitkx] service" +#define msvc_full_usafe \ + "[option] service\n" \ + "Where option is one of\n" \ + "\t-u\tUp. If the service is not running, start it. If the service stops, restart it.\n" \ + "\t-d\tDown. If the service is running, stop it, do not restart it.\n" \ + "\t-o\tOnce. If the service is not running, start it. Do not restart it if it stops.\n" \ + "\t-r\tTell supervise that the service is normally running; this affects status messages.\n" \ + "\t-s\tTell supervise that the service is normally stopped; this affects status messages.\n" \ + "\t-p\tPause. Send the service a STOP signal.\n" \ + "\t-c\tContinue. Send the service a CONT signal.\n" \ + "\t-h\tHangup. Send the service a HUP signal.\n" \ + "\t-a\tAlarm. Send the service an ALRM signal.\n" \ + "\t-i\tInterrupt. Send the service an INT signal.\n" \ + "\t-t\tTerminate. Send the service a TERM signal.\n" \ + "\t-k\tKill. Send the service a KILL signal.\n" \ + "\t-x\tExit. supervise will quit as soon as the service is down.\n" + #define mt_trivial_usage \ "[-f device] opcode value" #define mt_full_usage \ @@ -1666,6 +1690,11 @@ "\t-l\tLocks (disables) the specified user account.\n" \ "\t-u\tUnlocks (re-enables) the specified user account." +#define pidfilehack_trivial_usage \ + "[daemon.pid] [daemon]" +#define pidfilehack_full_usage \ + "service /var/run/daemon.pid /usr/sbin/daemon args...\n" + #define pidof_trivial_usage \ "process-name [process-name ...]" #define pidof_full_usage \ -- cgit v1.2.3