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

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

Re: stronny red 2013-05-30 <CALOvDf7fpScGUJBai69S3=Mr5wC-Xj5BZEqnV4qQBjOHXcj+Zg(at)mail(dot)gmail(dot)com>
> I was able to reproduce the problem.
>
> Package versions
> -----------------
> ii postgresql-9.2 9.2.4-1.pgdg60+1
> object-relational SQL database, version 9.2 server
> ii postgresql-common 142.pgdg60+1
> PostgreSQL database-cluster manager
>
> The failure
> -----------------
> # /etc/init.d/postgresql stop
> # rm -rf /var/run/postgresql
> # /etc/init.d/postgresql start
> Error: Cannot stat /var/run/postgresql

Can you try "sh -x /etc/init.d/postgresql start" there and send us the
output?

Here it does:

+ [ -d /var/run/postgresql ]
+ install -d -m 2775 -o postgres -g postgres /var/run/postgresql

> No PostgreSQL clusters exist; see "man pg_createcluster" ... (warning).

Btw, this seems to be the actual problem here.

> The config file
> -----------------
> # ls -lA /etc/postgresql/9.2
> total 0
> lrwxrwxrwx 1 root root 23 May 22 20:36 main -> /var/lib/postgresql/etc

That's a non-standard setup. Could it be the case that this partition
wasn't mounted during your tests, or something like that?

Christoph
--
cb(at)df7cb(dot)de | http://www.df7cb.de/

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2013-06-01 07:55:26 Re: BUG #8193: A few cosmetic misspell fixes.
Previous Message Tom Lane 2013-06-01 04:27:38 Re: BUG #8191: Wrong bit conversion

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message Colin 't Hart 2013-06-04 08:42:35 No etags?
Previous Message stronny red 2013-05-30 07:29:13 Re: [BUGS] BUG #8177: initscript should create /var/run/postgresql