Commit e01e14ed authored by Peter Eisentraut's avatar Peter Eisentraut

Avoid bogus failures due to 'ps x | grep postmaster' detecting 'grep

postmaster' process.
parent f118c36a
#!/bin/sh
#
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.6 2000/11/11 22:59:47 petere Exp $
# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.7 2001/01/25 16:32:25 petere Exp $
#
CMDNAME=`basename $0`
......@@ -43,7 +43,7 @@ if [ `uname` = 'Linux' ]; then
ipcs_lpid=
did_anything=
if ps x | grep -s 'postmaster' >/dev/null 2>&1 ; then
if ps x | grep -s '[p]ostmaster' >/dev/null 2>&1 ; then
echo "$CMDNAME: You still have a postmaster running." 1>&2
exit 1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment