Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30261 - [systemd-arch-units] Postgresql fails to start without setting $PGROOT in /etc/conf.d/postgresql

Attached to Project: Arch Linux
Opened by James Cleveland (antihero) - Tuesday, 12 June 2012, 09:42 GMT
Last edited by Dave Reisner (falconindy) - Wednesday, 13 June 2012, 10:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: In the file /usr/lib/systemd/scripts/postgresql-initdb, there is a line that depends on the $PGROOT environment variable being set, otherwise it attempts to symlink it to nothing and fails.

This is listed in the wiki as "optional" configuration.


Additional info:
* package version(s): 20120606-4


Steps to reproduce:

1. Install systemd-arch-units
2. Install postgresql.
3. Try to start postgresql with `systemctl start postgresql.service`.
4. Observe error output with `systemctl status postgresql.service`.

Proposed fix for /usr/lib/systemd/scripts/postgresql-initdb is attached, though a better solution might exist.
This task depends upon

Closed by  Dave Reisner (falconindy)
Wednesday, 13 June 2012, 10:05 GMT
Reason for closing:  Duplicate

Loading...