[Pkg-postgresql-public] Bug#772824: init script should create /var/run/postgresql before invoking pg_lsclusters

Christoph Berg christoph.berg at credativ.de
Thu Dec 11 13:36:18 UTC 2014

Package: postgresql-common
Version: 163
Severity: important
Tags: pending

There is a chicken-egg condition in /etc/init.d/postgresql where we
first ask pg_lsclusters if there are any clusters to start, and later
create /var/run/postgresql in the start() function.

However in some setups, pg_lsclusters needs /var/run/postgresql
present to properly detect the list of clusters, so we should simply
create this directory earlier.

Systems running systemd are not affected, as there is a tempfiles
stanza that creates /var/run/postgresql; still we need to fix this for
sysvinit users.


cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20141211/f418f76f/attachment.sig>

More information about the Pkg-postgresql-public mailing list