dataease-dm/installer/dataease/bin/dataease/dataease.service
2023-10-23 22:00:14 +08:00

44 lines
661 B
Desktop File

#!/bin/bash
# chkconfig: 2345 10 90
# description: DATAEASE service
function startDATAEASE
{
dectl start
}
function stopDATAEASE
{
dectl stop
}
function restartDATAEASE
{
stopDATAEASE
startDATAEASE
}
function statusDATAEASE
{
dectl status
}
export HOSTNAME=$HOSTNAME
case "$1" in
start)
startDATAEASE
;;
stop)
stopDATAEASE
;;
restart)
restartDATAEASE
;;
status)
statusDATAEASE
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
;;
esac