summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Luttringer <seblu@seblu.net>2011-06-18 02:46:35 +0200
committerSebastien Luttringer <seblu@seblu.net>2011-06-18 03:35:42 +0200
commit89a7dbb52543dd98d86440dfe8dd04e752f55337 (patch)
tree464354fa28163c7b111061057edd2c60389c2654
parent590ee44c1495ea67d057e0d21e4ebc25c0e17782 (diff)
rc.d: Update usage
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
-rwxr-xr-xrc.d9
1 files changed, 8 insertions, 1 deletions
diff --git a/rc.d b/rc.d
index ad0a1e9..939538e 100755
--- a/rc.d
+++ b/rc.d
@@ -6,9 +6,16 @@
usage() {
local name=${0##*/}
cat >&2 << EOF
-usage: $name action daemon ...
+usage: $name <action> <daemon> [daemon] ...
+ $name list [started|stopped]
+ $name help
+
+<daemon> is the name of a script in /etc/rc.d
+<action> can be a start, stop, restart, reload, status, ...
+WARNING: initscripts are free to implement or not the above actions.
e.g: $name list
+ $name list started
$name help
$name start sshd gpm
EOF