|
|
|
@ -43,6 +43,16 @@ stop() {
|
|
|
|
|
rm -f ${pidfile}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
status(){
|
|
|
|
|
if [[ -f ${pidfile} ]]; then
|
|
|
|
|
echo "Status: running."
|
|
|
|
|
exit 0;
|
|
|
|
|
else
|
|
|
|
|
echo "Status: not running."
|
|
|
|
|
exit 1;
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
|
start)
|
|
|
|
|
start
|
|
|
|
@ -50,6 +60,9 @@ case "$1" in
|
|
|
|
|
stop)
|
|
|
|
|
stop
|
|
|
|
|
;;
|
|
|
|
|
status)
|
|
|
|
|
status
|
|
|
|
|
;;
|
|
|
|
|
restart)
|
|
|
|
|
stop
|
|
|
|
|
start
|
|
|
|
|