commit: https://git.buildroot.net/buildroot/commit/?id=9ecdaef76178219b26add7fc93fd62bafaab73c8
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.08.x
commit eada187e77022f0d changed the service to Type=notify.
notify units don't need a PIDFile so this can be removed.
Signed-off-by: Michael Nosthoff <redacted>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit a9bc0024b6f79a59537a48e64d71a78b73175561)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/postgresql/postgresql.service | 1 -
1 file changed, 1 deletion(-)
diff --git a/package/postgresql/postgresql.service b/package/postgresql/postgresql.service
index 53e6f84f00..539eea8964 100644
--- a/package/postgresql/postgresql.service
+++ b/package/postgresql/postgresql.service
@@ -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