projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f118c36
)
Avoid bogus failures due to 'ps x | grep postmaster' detecting 'grep
author
Peter Eisentraut
<peter_e@gmx.net>
Thu, 25 Jan 2001 16:32:25 +0000
(16:32 +0000)
committer
Peter Eisentraut
<peter_e@gmx.net>
Thu, 25 Jan 2001 16:32:25 +0000
(16:32 +0000)
postmaster' process.
src/bin/ipcclean/ipcclean.sh
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/ipcclean/ipcclean.sh
b/src/bin/ipcclean/ipcclean.sh
index d4572dd77b674ba5c61c4834dfd3b7c42e0489fd..df13ea06927e616609fd8625875c825e76f0f174 100644
(file)
--- 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 '
p
ostmaster' >/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