Skip to content
Permalink
Browse files
add cron restart on ubuntu
  • Loading branch information
usmannasir committed Mar 25, 2020
1 parent e876bd5 commit 7752cfca4edc9c195d17b041d0452a7f35b5c1c5
Showing 1 changed file with 3 additions and 0 deletions.
@@ -1609,6 +1609,9 @@ def addNewCron(self, userID=None, data=None):
command = 'chmod 600 %s' % (cronPath)
ProcessUtilities.executioner(command)

command = 'systemctl restart cron'
ProcessUtilities.executioner(command)

CronUtil.CronPrem(0)

if output.find("1,") > -1:

0 comments on commit 7752cfc

Please sign in to comment.