[UPDATE] - init.d
This commit is contained in:
@@ -30,6 +30,12 @@ case "$1" in
|
||||
/usr/local/bin/monithor-server stop
|
||||
;;
|
||||
|
||||
status)
|
||||
logger "status MoniThor server" "monithor-d" || true
|
||||
[ $(ps axf| grep /usr/local/bin/monithor-server|grep -v grep) ] && echo "monithor-d is running" || echo "montihor-d is dead"
|
||||
;;
|
||||
|
||||
|
||||
*)
|
||||
echo "Usage: /etc/init.d/monithor-d {start|stop|status}" || true
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user