package/nginx: use /run for PIDFile
PATCH 1/1 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.
--- package/nginx/nginx.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/nginx/nginx.service +1 -1
@@ -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;'
Signature · 1 line
2.25.1
PATCH 1/1 package/nginx: use /run for PIDFile
Hello,
Quoted 7 lines · On Tue, 15 Sep 2020 21:49:56 +0200 Michael Nosthoff via buildroot…
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 <[email protected]>
Thanks for this. Does this means we also need to fix:
$ git grep PIDFile=/var * package/bandwidthd/bandwidthd.service:PIDFile=/var/run/bandwidthd.pid package/dhcpcd/dhcpcd.service:PIDFile=/var/run/dhcpcd.pid package/htpdate/htpdate.service:PIDFile=/var/run/htpdate package/minidlna/minidlnad.service:PIDFile=/var/run/minidlna/minidlna.pid package/nginx/nginx.service:PIDFile=/var/run/nginx.pid package/nss-pam-ldapd/nslcd.service:PIDFile=/var/run/nslcd/nslcd.pid package/openvmtools/vmtoolsd.service:PIDFile=/var/run/vmtoolsd.pid package/postgresql/postgresql.service:PIDFile=/var/lib/pgsql/postmaster.pid
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/nginx: use /run for PIDFile
Hi,
Quoted 14 lines · Thomas Petazzoni
Hello,
Quoted 7 lines · On Tue, 15 Sep 2020 21:49:56 +0200 Michael Nosthoff via buildroot…
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 <[email protected]>Thanks for this. Does this means we also need to fix:
Quoted 9 lines
$ git grep PIDFile=/var * package/bandwidthd/bandwidthd.service:PIDFile=/var/run/bandwidthd.pid package/dhcpcd/dhcpcd.service:PIDFile=/var/run/dhcpcd.pid package/htpdate/htpdate.service:PIDFile=/var/run/htpdate package/minidlna/minidlnad.service:PIDFile=/var/run/minidlna/minidlna.pid package/nginx/nginx.service:PIDFile=/var/run/nginx.pid package/nss-pam-ldapd/nslcd.service:PIDFile=/var/run/nslcd/nslcd.pid package/openvmtools/vmtoolsd.service:PIDFile=/var/run/vmtoolsd.pid package/postgresql/postgresql.service:PIDFile=/var/lib/pgsql/postmaster.pid
i don't use any of those packages. So i didn't get warnings for them. But it would make sense.
I ran into the issue that systemd removed /var/lock entirely with the version in BR 2020.08. So this might happen to /var/run in the future as well.
Should I throw this together into one single patch?
Regards,
Michael
PATCH v2 1/1 package/{bandwithd, dhcpcd, htpdate, minidlna, nginx, nss-pam-ldapd, openvmtools}: use PIDFile=/run in systemd services
In reply to Michael NosthoffFixes:
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.
Details:
- https://github.com/systemd/systemd/pull/10712
--- package/bandwidthd/bandwidthd.service | 2 +- package/dhcpcd/dhcpcd.service | 2 +- package/htpdate/htpdate.service | 2 +- package/minidlna/minidlnad.service | 2 +- package/nginx/nginx.service | 2 +- package/nss-pam-ldapd/nslcd.service | 2 +- package/openvmtools/vmtoolsd.service | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
package/bandwidthd/bandwidthd.service +1 -1
@@ -5,7 +5,7 @@ After=network.target [Service] Type=forking ExecStart=/usr/bin/bandwidthd -PIDFile=/var/run/bandwidthd.pid +PIDFile=/run/bandwidthd.pid [Install] WantedBy=multi-user.target
package/dhcpcd/dhcpcd.service +1 -1
@@ -5,7 +5,7 @@ After=network.target [Service] Type=forking EnvironmentFile=-/etc/default/dhcpcd -PIDFile=/var/run/dhcpcd.pid +PIDFile=/run/dhcpcd.pid ExecStart=/sbin/dhcpcd $DAEMON_ARGS Restart=always
package/htpdate/htpdate.service +1 -1
@@ -4,7 +4,7 @@ After=network.target [Service] Type=forking -PIDFile=/var/run/htpdate +PIDFile=/run/htpdate Environment=HTPDATE_ARGS="-a -s -t https://www.google.com" EnvironmentFile=-/etc/default/htpdate ExecStart=/usr/bin/htpdate -D -i /var/run/htpdate $HTPDATE_ARGS
package/minidlna/minidlnad.service +1 -1
@@ -5,7 +5,7 @@ After=network.target [Service] Type=forking ExecStart=/usr/sbin/minidlnad -PIDFile=/var/run/minidlna/minidlna.pid +PIDFile=/run/minidlna/minidlna.pid [Install] WantedBy=multi-user.target
package/nginx/nginx.service +1 -1
@@ -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;'
package/nss-pam-ldapd/nslcd.service +1 -1
@@ -4,7 +4,7 @@ After=syslog.target network.target [Service] Type=forking -PIDFile=/var/run/nslcd/nslcd.pid +PIDFile=/run/nslcd/nslcd.pid ExecStart=/usr/sbin/nslcd [Install]
package/openvmtools/vmtoolsd.service +1 -1
@@ -5,7 +5,7 @@ ConditionVirtualization=vmware [Service] Type=forking -PIDFile=/var/run/vmtoolsd.pid +PIDFile=/run/vmtoolsd.pid ExecStart=/usr/bin/vmtoolsd -b /var/run/vmtoolsd.pid Restart=on-failure KillMode=process
Signature · 1 line
2.25.1
PATCH v2 1/1 package/{bandwithd, dhcpcd, htpdate, minidlna, nginx, nss-pam-ldapd, openvmtools}: use PIDFile=/run in systemd services
Hello,
Quoted 10 lines · On Tue, 15 Sep 2020 23:56:45 +0200 Michael Nosthoff via buildroot…
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.Details:
- https://github.com/systemd/systemd/pull/10712Signed-off-by Michael Nosthoff <[email protected]>
I think we would normally prefer one patch for each. For example, for htpdate, we also need to fix the PIDFile path so that it has a .pid extension.
Also, is there something that needs to be done with Postgresql:
package/postgresql/postgresql.service:PIDFile=/var/lib/pgsql/postmaster.pid
is it expected to have the PIDFile in /var/lib ?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v2 1/1 package/{bandwithd, dhcpcd, htpdate, minidlna, nginx, nss-pam-ldapd, openvmtools}: use PIDFile=/run in systemd services
Hi,
Quoted 6 lines · Thomas Petazzoni
Hello,
I think we would normally prefer one patch for each. For example, for htpdate, we also need to fix the PIDFile path so that it has a .pid extension.
okay, i'll split that up.
Quoted 6 lines
Also, is there something that needs to be done with Postgresql:
package/postgresql/postgresql.service:PIDFile=/var/lib/pgsql/postmaster.pid
is it expected to have the PIDFile in
/var/lib?
I'm not sure where the initial .service file came from. The postgres manual doesn't use PIDFile as it has a Type=notify configuration [0]. Debian uses a forking config for it's clustered setup [1], maybe it was derived from there.
The unit was changed to notify in [2] and I think this commit should have also removed the PIDFile.
(for the initial topic this isn't an issue because /var/lib is still a valid folder, but while we're at it...)
[0] https://www.postgresql.org/docs/12/server-start.html
[1]
https://salsa.debian.org/postgresql/postgresql-common/-/blob/master/systemd/postgresql at .service
[2]
https://git.busybox.net/buildroot/commit/package/postgresql/postgresql.service?id=eada187e77022f0da30884a826dc1767ba99abe8
Regards,
Michael
v3 cover systemd .service pidfiles in /run
In reply to Michael NosthoffOnly systemd .services of Type=notify need a PIDFile entry. [0] This pidfile should be located in /run. [0]/var/run is deprecated and systemd warns about it on every bootup. [1] This series fixes all affected packages.
Details:
[0] https://www.freedesktop.org/software/systemd/man/systemd.service.html#PIDFile=
[1] https://github.com/systemd/systemd/pull/10712
Michael Nosthoff (8):
package/nginx: use /run for PIDFile package/bandwithd: use /run for PIDFile package/dhcpcd: use /run for PIDFile package/htpdate: use /run for PIDFile package/minidlna: use /run for PIDFile package/nss-pam-ldapd: use /run for PIDFile package/openvmtools: use /run for PIDFile package/postgresql: remove PIDFile from .service
package/bandwidthd/bandwidthd.service | 2 +- package/dhcpcd/dhcpcd.service | 2 +- package/htpdate/htpdate.service | 4 ++-- package/minidlna/minidlnad.service | 2 +- package/nginx/nginx.service | 2 +- package/nss-pam-ldapd/nslcd.service | 2 +- package/openvmtools/vmtoolsd.service | 4 ++-- package/postgresql/postgresql.service | 1 - 8 files changed, 9 insertions(+), 10 deletions(-)
Signature · 1 line
2.25.1
v3 cover systemd .service pidfiles in /run
On 16.09.2020 13:45, Michael Nosthoff via buildroot wrote:
I messed up the in-reply-to. I'll resend have this clean in patchwork.
PATCH v3 1/8 package/nginx: use /run for PIDFile
In reply to Michael NosthoffFixes:
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.
--- package/nginx/nginx.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/nginx/nginx.service +1 -1
@@ -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;'
Signature · 1 line
2.25.1
PATCH v3 2/8 package/bandwithd: use /run for PIDFile
In reply to Michael NosthoffFixes:
PIDFile= references a path below legacy directory /var/run/, updating /var/run/bandwithd.pid ? /run/bandwithd.pid; please update the unit file accordingly.
--- package/bandwidthd/bandwidthd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/bandwidthd/bandwidthd.service +1 -1
@@ -5,7 +5,7 @@ After=network.target [Service] Type=forking ExecStart=/usr/bin/bandwidthd -PIDFile=/var/run/bandwidthd.pid +PIDFile=/run/bandwidthd.pid [Install] WantedBy=multi-user.target
Signature · 1 line
2.25.1
PATCH v3 3/8 package/dhcpcd: use /run for PIDFile
In reply to Michael NosthoffFixes:
PIDFile= references a path below legacy directory /var/run/, updating /var/run/dhcpcd.pid ? /run/dhcpcd.pid; please update the unit file accordingly.
--- package/dhcpcd/dhcpcd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/dhcpcd/dhcpcd.service +1 -1
@@ -5,7 +5,7 @@ After=network.target [Service] Type=forking EnvironmentFile=-/etc/default/dhcpcd -PIDFile=/var/run/dhcpcd.pid +PIDFile=/run/dhcpcd.pid ExecStart=/sbin/dhcpcd $DAEMON_ARGS Restart=always
Signature · 1 line
2.25.1
PATCH v3 4/8 package/htpdate: use /run for PIDFile
In reply to Michael Nosthoff- rename pidfile from htpdate to htpdate.pid
Fixes:
PIDFile= references a path below legacy directory /var/run/, updating /var/run/htpdate.pid ? /run/htpdate.pid; please update the unit file accordingly.
--- package/htpdate/htpdate.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/htpdate/htpdate.service +2 -2
@@ -4,10 +4,10 @@ After=network.target [Service] Type=forking -PIDFile=/var/run/htpdate +PIDFile=/run/htpdate.pid Environment=HTPDATE_ARGS="-a -s -t https://www.google.com" EnvironmentFile=-/etc/default/htpdate -ExecStart=/usr/bin/htpdate -D -i /var/run/htpdate $HTPDATE_ARGS +ExecStart=/usr/bin/htpdate -D -i /run/htpdate.pid $HTPDATE_ARGS [Install] WantedBy=multi-user.target
Signature · 1 line
2.25.1
PATCH v3 5/8 package/minidlna: use /run for PIDFile
In reply to Michael NosthoffFixes:
PIDFile= references a path below legacy directory /var/run/, updating /var/run/minidlna.pid ? /run/minidlna.pid; please update the unit file accordingly.
--- package/minidlna/minidlnad.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/minidlna/minidlnad.service +1 -1
@@ -5,7 +5,7 @@ After=network.target [Service] Type=forking ExecStart=/usr/sbin/minidlnad -PIDFile=/var/run/minidlna/minidlna.pid +PIDFile=/run/minidlna/minidlna.pid [Install] WantedBy=multi-user.target
Signature · 1 line
2.25.1
PATCH v3 6/8 package/nss-pam-ldapd: use /run for PIDFile
In reply to Michael NosthoffFixes:
PIDFile= references a path below legacy directory /var/run/, updating /var/run/nslcd.pid ? /run/nslcd.pid; please update the unit file accordingly.
--- package/nss-pam-ldapd/nslcd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/nss-pam-ldapd/nslcd.service +1 -1
@@ -4,7 +4,7 @@ After=syslog.target network.target [Service] Type=forking -PIDFile=/var/run/nslcd/nslcd.pid +PIDFile=/run/nslcd/nslcd.pid ExecStart=/usr/sbin/nslcd [Install]
Signature · 1 line
2.25.1
PATCH v3 7/8 package/openvmtools: use /run for PIDFile
In reply to Michael NosthoffFixes:
PIDFile= references a path below legacy directory /var/run/, updating /var/run/vmtoolsd.pid ? /run/vmtoolsd.pid; please update the unit file accordingly.
--- package/openvmtools/vmtoolsd.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/openvmtools/vmtoolsd.service +2 -2
@@ -5,8 +5,8 @@ ConditionVirtualization=vmware [Service] Type=forking -PIDFile=/var/run/vmtoolsd.pid -ExecStart=/usr/bin/vmtoolsd -b /var/run/vmtoolsd.pid +PIDFile=/run/vmtoolsd.pid +ExecStart=/usr/bin/vmtoolsd -b /run/vmtoolsd.pid Restart=on-failure KillMode=process KillSignal=SIGKILL
Signature · 1 line
2.25.1
PATCH v3 8/8 package/postgresql: remove PIDFile from .service
In reply to Michael Nosthoffcommit eada187e77022f0d changed the service to Type=notify. notify units don't need a PIDFile so this can be removed.
--- package/postgresql/postgresql.service | 1 - 1 file changed, 1 deletion(-)
package/postgresql/postgresql.service +0 -1
@@ -15,7 +15,6 @@ Group=postgres StandardOutput=syslog StandardError=syslog SyslogIdentifier=postgres -PIDFile=/var/lib/pgsql/postmaster.pid ExecStartPre=/bin/sh -c "if [ ! -f /var/lib/pgsql/PG_VERSION ]; then /usr/bin/pg_ctl initdb -D /var/lib/pgsql; fi" ExecStart=/usr/bin/postgres -D /var/lib/pgsql
Signature · 1 line
2.25.1
v3 cover systemd .service pidfiles in /run
In reply to Michael NosthoffOnly systemd .services of Type=notify need a PIDFile entry. [0] This pidfile should be located in /run. [0]/var/run is deprecated and systemd warns about it on every bootup. [1] This series fixes all affected packages.
Details:
[0] https://www.freedesktop.org/software/systemd/man/systemd.service.html#PIDFile=
[1] https://github.com/systemd/systemd/pull/10712
Michael Nosthoff (8):
package/nginx: use /run for PIDFile package/bandwithd: use /run for PIDFile package/dhcpcd: use /run for PIDFile package/htpdate: use /run for PIDFile package/minidlna: use /run for PIDFile package/nss-pam-ldapd: use /run for PIDFile package/openvmtools: use /run for PIDFile package/postgresql: remove PIDFile from .service
package/bandwidthd/bandwidthd.service | 2 +- package/dhcpcd/dhcpcd.service | 2 +- package/htpdate/htpdate.service | 4 ++-- package/minidlna/minidlnad.service | 2 +- package/nginx/nginx.service | 2 +- package/nss-pam-ldapd/nslcd.service | 2 +- package/openvmtools/vmtoolsd.service | 4 ++-- package/postgresql/postgresql.service | 1 - 8 files changed, 9 insertions(+), 10 deletions(-)
Signature · 1 line
2.25.1
PATCH v3 1/8 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.
--- package/nginx/nginx.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/nginx/nginx.service +1 -1
@@ -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;'
Signature · 1 line
2.25.1
PATCH v3 2/8 package/bandwithd: use /run for PIDFile
Fixes:
PIDFile= references a path below legacy directory /var/run/, updating /var/run/bandwithd.pid ? /run/bandwithd.pid; please update the unit file accordingly.
--- package/bandwidthd/bandwidthd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/bandwidthd/bandwidthd.service +1 -1
@@ -5,7 +5,7 @@ After=network.target [Service] Type=forking ExecStart=/usr/bin/bandwidthd -PIDFile=/var/run/bandwidthd.pid +PIDFile=/run/bandwidthd.pid [Install] WantedBy=multi-user.target
Signature · 1 line
2.25.1
PATCH v3 3/8 package/dhcpcd: use /run for PIDFile
In reply to Michael NosthoffFixes:
PIDFile= references a path below legacy directory /var/run/, updating /var/run/dhcpcd.pid ? /run/dhcpcd.pid; please update the unit file accordingly.
--- package/dhcpcd/dhcpcd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/dhcpcd/dhcpcd.service +1 -1
@@ -5,7 +5,7 @@ After=network.target [Service] Type=forking EnvironmentFile=-/etc/default/dhcpcd -PIDFile=/var/run/dhcpcd.pid +PIDFile=/run/dhcpcd.pid ExecStart=/sbin/dhcpcd $DAEMON_ARGS Restart=always
Signature · 1 line
2.25.1
PATCH v3 4/8 package/htpdate: use /run for PIDFile
In reply to Michael Nosthoff- rename pidfile from htpdate to htpdate.pid
Fixes:
PIDFile= references a path below legacy directory /var/run/, updating /var/run/htpdate.pid ? /run/htpdate.pid; please update the unit file accordingly.
--- package/htpdate/htpdate.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/htpdate/htpdate.service +2 -2
@@ -4,10 +4,10 @@ After=network.target [Service] Type=forking -PIDFile=/var/run/htpdate +PIDFile=/run/htpdate.pid Environment=HTPDATE_ARGS="-a -s -t https://www.google.com" EnvironmentFile=-/etc/default/htpdate -ExecStart=/usr/bin/htpdate -D -i /var/run/htpdate $HTPDATE_ARGS +ExecStart=/usr/bin/htpdate -D -i /run/htpdate.pid $HTPDATE_ARGS [Install] WantedBy=multi-user.target
Signature · 1 line
2.25.1
PATCH v3 5/8 package/minidlna: use /run for PIDFile
In reply to Michael NosthoffFixes:
PIDFile= references a path below legacy directory /var/run/, updating /var/run/minidlna.pid ? /run/minidlna.pid; please update the unit file accordingly.
--- package/minidlna/minidlnad.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/minidlna/minidlnad.service +1 -1
@@ -5,7 +5,7 @@ After=network.target [Service] Type=forking ExecStart=/usr/sbin/minidlnad -PIDFile=/var/run/minidlna/minidlna.pid +PIDFile=/run/minidlna/minidlna.pid [Install] WantedBy=multi-user.target
Signature · 1 line
2.25.1
PATCH v3 6/8 package/nss-pam-ldapd: use /run for PIDFile
In reply to Michael NosthoffFixes:
PIDFile= references a path below legacy directory /var/run/, updating /var/run/nslcd.pid ? /run/nslcd.pid; please update the unit file accordingly.
--- package/nss-pam-ldapd/nslcd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/nss-pam-ldapd/nslcd.service +1 -1
@@ -4,7 +4,7 @@ After=syslog.target network.target [Service] Type=forking -PIDFile=/var/run/nslcd/nslcd.pid +PIDFile=/run/nslcd/nslcd.pid ExecStart=/usr/sbin/nslcd [Install]
Signature · 1 line
2.25.1
PATCH v3 7/8 package/openvmtools: use /run for PIDFile
In reply to Michael NosthoffFixes:
PIDFile= references a path below legacy directory /var/run/, updating /var/run/vmtoolsd.pid ? /run/vmtoolsd.pid; please update the unit file accordingly.
--- package/openvmtools/vmtoolsd.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/openvmtools/vmtoolsd.service +2 -2
@@ -5,8 +5,8 @@ ConditionVirtualization=vmware [Service] Type=forking -PIDFile=/var/run/vmtoolsd.pid -ExecStart=/usr/bin/vmtoolsd -b /var/run/vmtoolsd.pid +PIDFile=/run/vmtoolsd.pid +ExecStart=/usr/bin/vmtoolsd -b /run/vmtoolsd.pid Restart=on-failure KillMode=process KillSignal=SIGKILL
Signature · 1 line
2.25.1
PATCH v3 8/8 package/postgresql: remove PIDFile from .service
In reply to Michael Nosthoffcommit eada187e77022f0d changed the service to Type=notify. notify units don't need a PIDFile so this can be removed.
--- package/postgresql/postgresql.service | 1 - 1 file changed, 1 deletion(-)
package/postgresql/postgresql.service +0 -1
@@ -15,7 +15,6 @@ Group=postgres StandardOutput=syslog StandardError=syslog SyslogIdentifier=postgres -PIDFile=/var/lib/pgsql/postmaster.pid ExecStartPre=/bin/sh -c "if [ ! -f /var/lib/pgsql/PG_VERSION ]; then /usr/bin/pg_ctl initdb -D /var/lib/pgsql; fi" ExecStart=/usr/bin/postgres -D /var/lib/pgsql
Signature · 1 line
2.25.1
PATCH v3 1/8 package/nginx: use /run for PIDFile
In reply to Michael NosthoffQuoted 10 lines · On Wed, 16 Sep 2020 17:35:03 +0200 Michael Nosthoff via buildroot…
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 <[email protected]>--- package/nginx/nginx.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, series applied.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v3 1/8 package/nginx: use /run for PIDFile
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Quoted 6 lines · On Wed, 16 Sep 2020 17:35:03 +0200 Michael Nosthoff via buildroot…
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.
Quoted 6 lines
Quoted 4 lines
Signed-off-by Michael Nosthoff <[email protected]>---
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.
Signature · 1 line
Bye, Peter Korsgaard