On Thu, May 30, 2013 at 6:58 AM, Christoph Berg <myon@debian.org> wrote:
On Mon, 2013-05-27 at 09:27 +0000, stronny@celestia.ru wrote: > The following bug has been logged on the website: > > Bug reference: 8177 > Logged by: stronny > Email address: stronny@celestia.ru > PostgreSQL version: 9.2.4 > Operating system: wheezy > Description: > > When installed from apt.postgresql.org Postgres fails to start on system > boot. > > Wheezy changed /var/run to become memory-based so initscript should create > /var/run/postgresql if necessary.
start() { # create socket directory if [ -d /var/run/postgresql ]; then chmod 2775 /var/run/postgresql else install -d -m 2775 -o postgres -g postgres /var/run/postgresql fi