Skip to content

Commit

Permalink
check if backup process actually running
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed May 30, 2020
1 parent 8213708 commit 55eff1a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion plogical/backupSchedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ def prepare():
output = ProcessUtilities.outputExecutioner('ps aux')

if output.find('/usr/local/CyberCP/plogical/backupSchedule.py') > -1 and output.find(pid) > -1:
pid = open(backupSchedule.runningPath, 'r').read()
print(
'\n\nRemote backup is already running with PID: %s. If you want to run again kindly kill the backup process: \n\n kill -9 %s.\n\n' % (
pid, pid))
Expand Down

0 comments on commit 55eff1a

Please sign in to comment.