mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-11-29 18:37:36 +08:00
support: service cetus status
This commit is contained in:
parent
44ddb1f5f5
commit
2c21fae00d
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user