diff --git a/conf/ffsync b/conf/ffsync index 0f4ad0f..e2fb135 100755 --- a/conf/ffsync +++ b/conf/ffsync @@ -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