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
This commit is contained in:
Elias Probst
2015-10-25 20:45:00 +01:00
parent 5d71738e37
commit 4d73233991
9 changed files with 4 additions and 15 deletions
-2
View File
@@ -186,8 +186,6 @@ src_install() {
"${FILESDIR}/${PN}.service" | \
systemd_newunit - ${PN}-${SLOT}.service
systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfilesd ${PN}-${SLOT}.conf
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session