Skip to content

Commit 7752cfc

Browse files
committed
add cron restart on ubuntu
1 parent e876bd5 commit 7752cfc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

websiteFunctions/website.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,9 @@ def addNewCron(self, userID=None, data=None):
16091609
command = 'chmod 600 %s' % (cronPath)
16101610
ProcessUtilities.executioner(command)
16111611

1612+
command = 'systemctl restart cron'
1613+
ProcessUtilities.executioner(command)
1614+
16121615
CronUtil.CronPrem(0)
16131616

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

0 commit comments

Comments
 (0)