summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2001-01-25 16:32:25 +0000
committerPeter Eisentraut <peter_e@gmx.net>2001-01-25 16:32:25 +0000
commite01e14ed66613bbf055621722e2557b82fdc0971 (patch)
tree2990e39ac941fed126e49dcb6e4dee597afd08e1 /src
parentf118c36a7811b0a9e4c733863bc34c592c4a647f (diff)
Avoid bogus failures due to 'ps x | grep postmaster' detecting 'grep
postmaster' process.
Diffstat (limited to 'src')
-rw-r--r--src/bin/ipcclean/ipcclean.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/ipcclean/ipcclean.sh b/src/bin/ipcclean/ipcclean.sh
index d4572dd77b6..df13ea06927 100644
--- a/src/bin/ipcclean/ipcclean.sh
+++ b/src/bin/ipcclean/ipcclean.sh
@@ -1,6 +1,6 @@
#!/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