From 7cea1aeb5abb0bc4cab64f08aac84176aa5b2b28 Mon Sep 17 00:00:00 2001 From: Giovanni Toraldo Date: Mon, 23 Jan 2012 16:05:01 +0100 Subject: [PATCH] Adding status command to be LSB compliant --- share/etc/init.d/one.debian | 5 ++++- share/etc/init.d/one.ubuntu | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/share/etc/init.d/one.debian b/share/etc/init.d/one.debian index 7b75fffcaf..2d98d6ceb8 100755 --- a/share/etc/init.d/one.debian +++ b/share/etc/init.d/one.debian @@ -64,6 +64,9 @@ case "$1" in 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; + status) + status_of_proc "oned" "$NAME" && exit 0 || exit $? + ;; restart|force-reload) # # If the "reload" option is implemented then remove the @@ -87,7 +90,7 @@ case "$1" in esac ;; *) - echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2 exit 3 ;; esac diff --git a/share/etc/init.d/one.ubuntu b/share/etc/init.d/one.ubuntu index 7b75fffcaf..2d98d6ceb8 100755 --- a/share/etc/init.d/one.ubuntu +++ b/share/etc/init.d/one.ubuntu @@ -64,6 +64,9 @@ case "$1" in 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; + status) + status_of_proc "oned" "$NAME" && exit 0 || exit $? + ;; restart|force-reload) # # If the "reload" option is implemented then remove the @@ -87,7 +90,7 @@ case "$1" in esac ;; *) - echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2 exit 3 ;; esac