Browse Source

directly call the apache2 init script in acme_updater

Helmut Pozimski 7 years ago
parent
commit
35c54f4062
1 changed files with 1 additions and 1 deletions
  1. 1 1
      acme_updater.py

+ 1 - 1
acme_updater.py

@@ -188,7 +188,7 @@ if CERT_RENEWED:
                      "web server")
     else:
         try:
-            subprocess.check_call(["service", "apache2", "restart"])
+            subprocess.check_call(["/etc/init.d/apache2", "restart"])
         except subprocess.CalledProcessError:
             LOGGER.error("Apache restart failed!")
         else: