1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ffsync_ynh.git synced 2024-09-03 18:26:38 +02:00

Merge pull request #8 from matlink/patch-1

[upd] add status for service
This commit is contained in:
abeudin 2015-03-11 10:14:46 +01:00
commit bf954be3ef

View file

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