Restart cron daemon at end of installation.

This commit is contained in:
Antoine Nguyen
2018-07-11 11:46:12 +02:00
parent 6dc0a62ad7
commit d845ce78d0
2 changed files with 7 additions and 0 deletions

View File

@@ -57,3 +57,8 @@ def enable_and_start_service(name):
code, output = utils.exec_cmd("service {} status".format(name))
action = "start" if code else "restart"
utils.exec_cmd("service {} {}".format(name, action))
def restart_service(name):
"""Restart a service."""
utils.exec_cmd("service {} restart".format(name))