Merge pull request #109 from NathanFrench/master

Fix to assure only one instance is running.
This commit is contained in:
Laurent Cozic
2018-02-12 12:38:49 +01:00
committed by GitHub
+1 -1
View File
@@ -307,7 +307,7 @@ if [ -n "$(fn_find "$INPROGRESS_FILE")" ]; then
fi
else
RUNNINGPID="$(fn_run_cmd "cat $INPROGRESS_FILE")"
if [ "$RUNNINGPID" = "$(pgrep "$APPNAME")" ]; then
if [ "$RUNNINGPID" = "$(pgrep -o -f "$APPNAME")" ]; then
fn_log_error "Previous backup task is still active - aborting."
exit 1
fi