Skip to content
Permalink
Browse files
check if backup process actually running
  • Loading branch information
usmannasir committed May 30, 2020
1 parent 8213708 commit 55eff1a850ed734cd1d45e249ed88eaabf36de52
Showing 1 changed file with 0 additions and 1 deletion.
@@ -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))

0 comments on commit 55eff1a

Please sign in to comment.