Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql - Mailing list pgsql-pkg-debian

From Christoph Berg
Subject Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql
Date
Msg-id 20130530025835.GB974@msgid.df7cb.de
Whole thread Raw
In response to Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql  (stronny red <stronny@celestia.ru>)
Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql  (Chris Nehren <cnehren+pgsql-pkg-debian@pobox.com>)
List pgsql-pkg-debian
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

    do_ctl_all start "$1" "Starting PostgreSQL $1 database server"
}

We create the directory, what specifically doesn't work for you?

Christoph
--
cb@df7cb.de | http://www.df7cb.de/


pgsql-pkg-debian by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql
Next
From: stronny red
Date:
Subject: Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql