From 9de58279a526cba01d810a0221e9e78b47e9714d Mon Sep 17 00:00:00 2001 From: ofthesun9 Date: Sat, 2 Jun 2018 07:04:14 +0200 Subject: [PATCH] Update start.py replace /var/log/nginx.pid with /var/run/nginx.pid to ensure consistency with core/nginx/conf/nginx.conf --- core/nginx/start.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"])