[upd] add status for service

By adding status to ffsync service, it allows it to be managed vie the webinterface :)
pull/3/head
Matlink 10 years ago
parent ee0346eba6
commit a643c6d033

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