Bug 117901

Summary: service postgresql stop or restart does not work
Product: [Fedora] Fedora Reporter: Bill Peck <bpeck>
Component: postgresqlAssignee: Tom Lane <tgl>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: hhorak
Target Milestone: ---Keywords: SELinux
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-03-10 21:59:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 114961    

Description Bill Peck 2004-03-09 20:08:02 UTC
Description of problem:
The commented line is the original and the one that works is added
after.  Basicly we need the </dev/null to keep su from asking if you
want to switch to another context. 

#su -l postgres -c "/usr/bin/pg_ctl stop -D $PGDATA -s -m fast" >
/dev/null 2>&1
su -l postgres -c "/usr/bin/pg_ctl stop -D $PGDATA -s -m fast"
</dev/null > /dev/null 2>&1


Version-Release number of selected component (if applicable):
postgresql-7.4.1-1

How reproducible:
everytime

Steps to Reproduce:
1. start postgresql service
2. issue /sbin/service postgresql stop or restart
3. you will sit here forever. :-)
  
Actual results:


Expected results:


Additional info:

Comment 1 Tom Lane 2004-03-10 21:59:06 UTC
Fix pushed out in 7.4.2-1.

Comment 2 Uno Engborg 2004-08-02 21:58:21 UTC
The postgres initscript still fails on 7.4.2-1 if SELinux is turned on.