Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 571390

Summary: app-eselect/eselect-postgresql - add a postgresql systemd service alias
Product: Gentoo Linux Reporter: Chris Mayo <aklhfex>
Component: [OLD] UnspecifiedAssignee: Aaron W. Swenson <titanofold>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: pgsql-bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: eselect-postgresql-1.2.1-systemd.patch

Description Chris Mayo 2016-01-09 16:55:51 UTC
Created attachment 422404 [details, diff]
eselect-postgresql-1.2.1-systemd.patch

Allow systemd unit files to declare dependency on postgresql.service (some currently in tree e.g. net-analyzer/zabbix).

If a user wants dependencies on specific versions of postgresql with systemd they can do so with drop-ins in /etc/systemd/system - they would likely be doing this anyway to run multiple versions of PostgreSQL itself e.g. to specify a different PGPORT.

Patch attached.
Comment 1 Aaron W. Swenson gentoo-dev 2016-01-15 19:07:12 UTC
I actually worked on removing this very thing from the initscripts/eselect as it is actually detrimental as it hides which slot will be brought up.

If systemd is incapable of expressing a generic provide and/or dependency, then systemd needs to be fixed.

However, thank you for your effort. If the systemd service files can be improved in some way, without hiding which slot will be used, I'll be happy to consider those as well.