diff mbox series

[v3,1/8] package/nginx: use /run for PIDFile

Message ID 20200916153510.476-1-buildroot@heine.tech
State Accepted
Headers show
Series [v3,1/8] package/nginx: use /run for PIDFile | expand

Commit Message

Michael Nosthoff Sept. 16, 2020, 3:35 p.m. UTC
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 <buildroot@heine.tech>
---
 package/nginx/nginx.service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Petazzoni Sept. 19, 2020, 1:18 p.m. UTC | #1
On Wed, 16 Sep 2020 17:35:03 +0200
Michael Nosthoff via buildroot <buildroot@busybox.net> wrote:

> 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 <buildroot@heine.tech>
> ---
>  package/nginx/nginx.service | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, series applied.

Thomas
Peter Korsgaard Sept. 28, 2020, 8:59 p.m. UTC | #2
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > On Wed, 16 Sep 2020 17:35:03 +0200
 > Michael Nosthoff via buildroot <buildroot@busybox.net> wrote:

 >> 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 <buildroot@heine.tech>
 >> ---
 >> package/nginx/nginx.service | 2 +-
 >> 1 file changed, 1 insertion(+), 1 deletion(-)

 > Thanks, series applied.

Series (except for the htpdate one) committed to 2020.02.x, 2020.05.x
and 2020.08.x, thanks.
diff mbox series

Patch

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;'