diff options
author | Nathan Kinder <nkinder@redhat.com> | 2009-01-14 19:23:12 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2009-01-14 19:23:12 +0000 |
commit | 03ab7a78d9396e4583aa5fdcb70515c57512e96a (patch) | |
tree | 1cae08ff0c8d55bbc662a21ec275f36e7834b95b /wrappers | |
parent | 191839c55de39a69bb0773133b8426b5c8dd244f (diff) | |
download | ds-03ab7a78d9396e4583aa5fdcb70515c57512e96a.tar.gz ds-03ab7a78d9396e4583aa5fdcb70515c57512e96a.tar.xz ds-03ab7a78d9396e4583aa5fdcb70515c57512e96a.zip |
Resolves: 442474
Summary: Make init script status command exit codes follow LSB standard.
Diffstat (limited to 'wrappers')
-rw-r--r-- | wrappers/initscript.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wrappers/initscript.in b/wrappers/initscript.in index 391e5676..458d9f4b 100644 --- a/wrappers/initscript.in +++ b/wrappers/initscript.in @@ -292,6 +292,7 @@ restart() { status() { + ret=0 for instance in $INSTANCES; do if [ -f $piddir/slapd-$instance.pid ]; then pid=`cat $piddir/slapd-$instance.pid` @@ -299,9 +300,11 @@ status() { echo "$prog $instance (pid $pid) is running..." else echo "$prog $instance dead but pid file exists" + ret=1 fi else echo "$prog $instance is stopped" + ret=3 fi done } |