Преглед изворни кода

directly call the apache2 init script in acme_updater

Helmut Pozimski пре 7 година
родитељ
комит
35c54f4062
1 измењених фајлова са 1 додато и 1 уклоњено
  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: