Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql

From: Christoph Berg <myon(at)debian(dot)org>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: stronny(at)celestia(dot)ru, pgsql-pkg-debian(at)postgresql(dot)org
Subject: Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql
Date: 2013-05-30 02:58:35
Message-ID: 20130530025835.GB974@msgid.df7cb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-pkg-debian

On Mon, 2013-05-27 at 09:27 +0000, stronny(at)celestia(dot)ru wrote:
> The following bug has been logged on the website:
>
> Bug reference: 8177
> Logged by: stronny
> Email address: stronny(at)celestia(dot)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(at)df7cb(dot)de | http://www.df7cb.de/

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message stronny red 2013-05-30 07:29:13 Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql
Previous Message Peter Eisentraut 2013-05-30 02:22:47 Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message stronny red 2013-05-30 07:29:13 Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql
Previous Message Peter Eisentraut 2013-05-30 02:22:47 Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql