From dd7749dd927a83fff20e3dc3c824c7e11baf71a4 Mon Sep 17 00:00:00 2001 From: tyagi86 <34483068+tyagi86@users.noreply.github.com> Date: Fri, 21 Jun 2019 12:13:50 -0400 Subject: [PATCH] Add 'status' support to debian init.d script Currently doing a status on shiny-server service return [?] --- config/init.d/debian/shiny-server | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/init.d/debian/shiny-server b/config/init.d/debian/shiny-server index 64266840..dec79b91 100644 --- a/config/init.d/debian/shiny-server +++ b/config/init.d/debian/shiny-server @@ -79,6 +79,9 @@ case "$1" in 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; + status) + status_of_proc -p "$DAEMON" "$NAME" && exit 0 || exit $? + ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop @@ -98,7 +101,7 @@ case "$1" in esac ;; *) - echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac