mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user