package/postgresql: change systemd service type to notify
authorJoseph Kogut <joseph.kogut@gmail.com>
Mon, 4 Feb 2019 18:53:40 +0000 (19:53 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 6 Feb 2019 11:54:17 +0000 (12:54 +0100)
commiteada187e77022f0da30884a826dc1767ba99abe8
tree1fd9a4909309a17be9f665f771623027082b3f11
parent5097295a4d3a176012a05eaa2824d1982865bfa8
package/postgresql: change systemd service type to notify

During activation, pg_ctl uses exec to start the db server, which causes
the service to never finish activating when Type=forking. Upstream
recommends configuring --with-systemd and using Type=notify.

https://www.postgresql.org/docs/10/static/server-start.html

Upstream says:
    When using systemd, you can use the following service unit file
    [...]
    Using Type=notify requires that the server binary was built with
    configure --with-systemd.

Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/postgresql/postgresql.mk
package/postgresql/postgresql.service