瀏覽代碼

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: