diff --git a/core/nginx/start.py b/core/nginx/start.py index bd5ce20c..b63b64a2 100755 --- a/core/nginx/start.py +++ b/core/nginx/start.py @@ -4,8 +4,8 @@ import os import subprocess # Check if a stale pid file exists -if os.path.exists("/var/log/nginx.pid"): - os.remove("/var/log/nginx.pid") +if os.path.exists("/var/run/nginx.pid"): + os.remove("/var/run/nginx.pid") if os.environ["TLS_FLAVOR"] in [ "letsencrypt","mail-letsencrypt" ]: subprocess.Popen(["/letsencrypt.py"])