From 4d732339911b0ea2aa9b994efe17a92d42281504 Mon Sep 17 00:00:00 2001 From: Elias Probst Date: Fri, 23 Oct 2015 23:25:09 +0200 Subject: dev-db/postgresql: Handle RuntimeDirectory in systemd unit Instead of using a separate `tmpfiles.d` definition to create `/run/postgresql`, let the service unit take care of it on its own. This prevents situations where the postgresql service can't start because `systemd-tmpfiles` wasn't run yet. Bug: https://bugs.gentoo.org/show_bug.cgi?id=563122 Package-Manager: portage-2.2.23 --- dev-db/postgresql/files/postgresql.service | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dev-db/postgresql/files/postgresql.service') diff --git a/dev-db/postgresql/files/postgresql.service b/dev-db/postgresql/files/postgresql.service index 20ed27a10f2..a607169d22f 100644 --- a/dev-db/postgresql/files/postgresql.service +++ b/dev-db/postgresql/files/postgresql.service @@ -47,5 +47,9 @@ TimeoutSec=300 # Disable OOM kill on the postmaster OOMScoreAdjust=-1000 +# Make sure the required runtimedir is present +RuntimeDirectory=postgresql +RuntimeDirectoryMode=1775 + [Install] WantedBy=multi-user.target -- cgit v1.2.1