From: Ken <borg@sprint-v.com.ru>
To: pgsql-bugs@postgresql.org
Subject: BUG #6179: "service postgresql-9.0 stop" does not stop postgresql server
Date: Fri, 26 Aug 2011 08:31:17 GMT
Message-ID: <201108260831.p7Q8VHTC011788@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 6179
Logged by: Ken
Email address: borg@sprint-v.com.ru
PostgreSQL version: 9.0.4
Operating system: CentOS 6.0 x86_64
Description: "service postgresql-9.0 stop" does not stop postgresql
server
Details:
Hi.
I am use RPM binaries from postgresql.org yum repository. Postgresql started
normally ("service postgresql-9.0 start"), but refuse stopping ("service
postgresql-9.0 stop"):
---------------------------------------------
[root@storage-2 init.d]# service postgresql-9.0 stop ; echo ; sleep 3 ; ps
ax | fgrep post
Stopping postgresql-9.0 service: Postmaster dead, but subsys exists.
[ OK ]
1685 ? Ss 0:00 /usr/libexec/postfix/master
22254 ? S 0:00 /usr/pgsql-9.0/bin/postmaster -p 5432 -D
/var/lib/pgsql/9.0/data
22262 ? Ss 0:00 postgres: logger process
22264 ? Ss 0:00 postgres: writer process
22265 ? Ss 0:00 postgres: wal writer process
22266 ? Ss 0:00 postgres: autovacuum launcher process
22267 ? Ss 0:00 postgres: stats collector process
22344 pts/2 S+ 0:00 fgrep post
[root@storage-2 init.d]#
---------------------------------------------
Here proposed patch for /etc/rc.d/init.d/postgresql-9.0 (seems typo, as
lockfile in almost cases have zero size):
----------------------------------------------------------------------------
-----------------------
158c158
< if [ -e "$lockfile" ] && [ ! -s "$lockfile" ]
---
> if [ -e "$lockfile" ] && [ ! -s "$pidfile" ]
----------------------------------------------------------------------------
-----------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: borg@sprint-v.com.ru
Subject: Re: BUG #6179: "service postgresql-9.0 stop" does not stop postgresql server
In-Reply-To: <201108260831.p7Q8VHTC011788@wwwmaster.postgresql.org>
References: <201108260831.p7Q8VHTC011788@wwwmaster.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox