From a7f34d8c901e109781f08e588b1e4a05a8d1f1c5 Mon Sep 17 00:00:00 2001 From: Chase Bolt Date: Sun, 19 Jan 2014 20:07:38 -0800 Subject: [PATCH] adding status option for init.ubuntu --- init.ubuntu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.ubuntu b/init.ubuntu index c5bbf6a5..5c525ff1 100755 --- a/init.ubuntu +++ b/init.ubuntu @@ -196,9 +196,12 @@ case "$1" in stop_headphones start_headphones ;; + status) + status_of_proc -p "$PID_FILE" "$DAEMON" "$DESC" + ;; *) N=/etc/init.d/$NAME - echo "Usage: $N {start|stop|restart|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 exit 1 ;; esac