Merge pull request #8 from matlink/patch-1

[upd] add status for service
pull/3/head
abeudin 10 years ago
commit bf954be3ef

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

Loading…
Cancel
Save