forked from github/dataease
44 lines
661 B
Desktop File
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
|