From 7752cfca4edc9c195d17b041d0452a7f35b5c1c5 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 25 Mar 2020 17:58:12 +0500 Subject: [PATCH] add cron restart on ubuntu --- websiteFunctions/website.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/websiteFunctions/website.py b/websiteFunctions/website.py index 0d6c7790f..4a1b80eaa 100755 --- a/websiteFunctions/website.py +++ b/websiteFunctions/website.py @@ -1609,6 +1609,9 @@ class WebsiteManager: command = 'chmod 600 %s' % (cronPath) ProcessUtilities.executioner(command) + command = 'systemctl restart cron' + ProcessUtilities.executioner(command) + CronUtil.CronPrem(0) if output.find("1,") > -1: