Bug 117901 - service postgresql stop or restart does not work
service postgresql stop or restart does not work
Product: Fedora
Classification: Fedora
Component: postgresql (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tom Lane
David Lawrence
: SELinux
Depends On:
Blocks: FC2Blocker
  Show dependency treegraph
Reported: 2004-03-09 15:08 EST by Bill Peck
Modified: 2013-07-02 23:00 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-03-10 16:59:06 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Bill Peck 2004-03-09 15:08:02 EST
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):

How reproducible:

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 16:59:06 EST
Fix pushed out in 7.4.2-1.
Comment 2 Uno Engborg 2004-08-02 17:58:21 EDT
The postgres initscript still fails on 7.4.2-1 if SELinux is turned on.

Note You need to log in before you can comment on or make changes to this bug.