Bug 1285822

Summary: postgresql init script return wrong exit code when pid file exist and database isn't running
Product: Red Hat Enterprise Linux 6 Reporter: Jakub Prokes <jprokes>
Component: postgresqlAssignee: Pavel Raiskup <praiskup>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.8CC: databases-maint
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-26 14:51:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jakub Prokes 2015-11-26 14:50:06 UTC
Description of problem:
SSIA

Version-Release number of selected component (if applicable):
postgresql-server-8.4.20-2.el6_6.x86_64
initscripts-9.03.49-1.el6.x86_64

How reproducible:

Steps to Reproduce:
1. echo "666666" > /var/lib/pgsql/data/postmaster.pid
2. service postgresql status
3. echo $?

Actual results:
3

Expected results:
1

Additional info:
Due to LSB, when pid file exist and service isn't running initscript should return '1'

http://www.rcramer.com/tech/linux/init_lsb.shtml

Comment 2 Jakub Prokes 2015-11-26 14:51:56 UTC

*** This bug has been marked as a duplicate of bug 1214800 ***