Skip to content

Commit

Permalink
add cron restart on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Mar 25, 2020
1 parent e876bd5 commit 7752cfc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions websiteFunctions/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7752cfc

Please sign in to comment.