Merge pull request #109 from NathanFrench/master
Fix to assure only one instance is running.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user