From e01e14ed66613bbf055621722e2557b82fdc0971 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 25 Jan 2001 16:32:25 +0000 Subject: [PATCH] Avoid bogus failures due to 'ps x | grep postmaster' detecting 'grep postmaster' process. --- src/bin/ipcclean/ipcclean.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/ipcclean/ipcclean.sh b/src/bin/ipcclean/ipcclean.sh index d4572dd77b..df13ea0692 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 -- 2.11.0