From 4027ba29f448b9f70347dbfd27cdeddab44e40b0 Mon Sep 17 00:00:00 2001 From: Michael Nosthoff Date: Wed, 16 Sep 2020 17:35:03 +0200 Subject: [PATCH] package/nginx: use /run for PIDFile MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: systemd[1]: /usr/lib/systemd/system/nginx.service:7: PIDFile= references a path below legacy directory /var/run/, updating /var/run/nginx.pid → /run/nginx.pid; please update the unit file accordingly. Signed-off-by: Michael Nosthoff Signed-off-by: Thomas Petazzoni --- package/nginx/nginx.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/nginx/nginx.service b/package/nginx/nginx.service index 320df9a80e..9fd215fd3e 100644 --- a/package/nginx/nginx.service +++ b/package/nginx/nginx.service @@ -4,7 +4,7 @@ After=syslog.target network.target [Service] Type=forking -PIDFile=/var/run/nginx.pid +PIDFile=/run/nginx.pid ExecStartPre=/usr/bin/mkdir -p /var/log/nginx /var/tmp/nginx ExecStartPre=/usr/sbin/nginx -t -q -g 'pid /var/run/nginx.pid; daemon on; master_process on;' ExecStart=/usr/sbin/nginx -g 'pid /var/run/nginx.pid; daemon on; master_process on;' -- 2.30.2