Adds status to the ubuntu 14.04 flow and gate init.d scripts

This commit is contained in:
Jaime Melis committed 2016-07-21 16:12:21 +02:00
1 parent 9c09c0d233
commit 41a599d032
2 files changed
+24

No files matched your search

+12
View File
@@ -17,6 +17,7 @@ NAME=oneflow-server
DAEMON=/usr/bin/$NAME
DAEMON_ARGS=""
SCRIPTNAME=/etc/init.d/$NAME
PID_FILE=/var/run/one/oneflow.pid
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
@@ -63,6 +64,17 @@ case "$1" in
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
status)
PID=`cat $PID_FILE`
kill -0 $PID > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
log_daemon_msg "$NAME is running"
log_end_msg 0
else
log_daemon_msg "$NAME is not running"
log_end_msg 1
fi
;;
restart|force-reload)
#
# If the "reload" option is implemented then remove the
+12
View File
@@ -17,6 +17,7 @@ NAME=onegate-server
DAEMON=/usr/bin/$NAME
DAEMON_ARGS=""
SCRIPTNAME=/etc/init.d/$NAME
PID_FILE=/var/run/one/onegate.pid
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
@@ -63,6 +64,17 @@ case "$1" in
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
status)
PID=`cat $PID_FILE`
kill -0 $PID > /dev/null 2>&1
if [ "$?" -eq "0" ]; then
log_daemon_msg "$NAME is running"
log_end_msg 0
else
log_daemon_msg "$NAME is not running"
log_end_msg 1
fi
;;
restart|force-reload)
#
# If the "reload" option is implemented then remove the