Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571390 - app-eselect/eselect-postgresql - add a postgresql systemd service alias
Summary: app-eselect/eselect-postgresql - add a postgresql systemd service alias
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Aaron W. Swenson
Depends on:
Reported: 2016-01-09 16:55 UTC by Chris Mayo
Modified: 2016-01-15 19:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

eselect-postgresql-1.2.1-systemd.patch (eselect-postgresql-1.2.1-systemd.patch,565 bytes, patch)
2016-01-09 16:55 UTC, Chris Mayo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2016-01-09 16:55:51 UTC
Created attachment 422404 [details, diff]

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.