Explorar o código

directly call the apache2 init script in acme_updater

Helmut Pozimski %!s(int64=7) %!d(string=hai) anos
pai
achega
35c54f4062
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: