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}
}
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

Loading…
Cancel
Save