From: Michael Nosthoff Date: Wed, 16 Sep 2020 15:35:03 +0000 (+0200) Subject: package/nginx: use /run for PIDFile X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4027ba29f448b9f70347dbfd27cdeddab44e40b0;p=buildroot.git package/nginx: use /run for PIDFile 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 --- 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;'