support: service cetus status

This commit is contained in:
tsthght 2019-04-28 10:05:02 +08:00
parent 44ddb1f5f5
commit 2c21fae00d

View File

@ -15,6 +15,7 @@ CETUS_PID=${CETUS_HOME}/cetus.pid
CETUS_LOG=${CETUS_HOME}/cetus.log
CETUS_EXEC=${CETUS_HOME}/libexec/cetus
CETUS_DAEMON="0"
CETUS_PROG="cetus"
cetus_pid=`sed '/^pid-file=/!d;s/.*=//' ${CETUS_CONF}`
if [ "$cetus_pid" != "" ];then
@ -121,6 +122,9 @@ case "$1" in
stop)
stop
;;
status)
status -p "$CETUS_PID" $CETUS_PROG
;;
restart)
restart
;;