summaryrefslogtreecommitdiff
path: root/src/bin/ipcclean/ipcclean.sh
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2003-07-23 08:47:41 +0000
committerPeter Eisentraut <peter_e@gmx.net>2003-07-23 08:47:41 +0000
commitc154fc3a204a1452297bf399bbc3caef7e0f16b4 (patch)
treeec111344790e54e6080f36c0b5e046ac5c89578f /src/bin/ipcclean/ipcclean.sh
parenta0743b132eef5ed8896f4c2d551af424691ba350 (diff)
downloadpostgresql-c154fc3a204a1452297bf399bbc3caef7e0f16b4.tar.gz
Apply message style guide to frontend programs.
Diffstat (limited to 'src/bin/ipcclean/ipcclean.sh')
-rw-r--r--src/bin/ipcclean/ipcclean.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bin/ipcclean/ipcclean.sh b/src/bin/ipcclean/ipcclean.sh
index 24f703197c..8870368fbb 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.13 2002/10/18 22:05:35 petere Exp $
+# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/ipcclean.sh,v 1.14 2003/07/23 08:47:23 petere Exp $
#
CMDNAME=`basename $0`
@@ -22,8 +22,9 @@ fi
if [ "$USER" = 'root' -o "$LOGNAME" = 'root' ]
then
(
- echo "You cannot run $CMDNAME as root. Please log in (using, e.g., 'su')"
- echo "as the (unprivileged) user that owned the server process."
+ echo "$CMDNAME: cannot be run as root" 1>&2
+ echo "Please log in (using, e.g., \"su\") as the (unprivileged) user that" 1>&2
+ echo "owned the server process." 1>&2
) 1>&2
exit 1
fi
@@ -39,7 +40,7 @@ EffectiveUser=`id -n -u 2>/dev/null || whoami 2>/dev/null`
#
if [ `uname` = 'QNX' ]; then
if ps -eA | grep -s '[p]ostmaster' >/dev/null 2>&1 ; then
- echo "$CMDNAME: You still have a postmaster running." 1>&2
+ echo "$CMDNAME: a postmaster is still running" 1>&2
exit 1
fi
rm -f /dev/shmem/PgS*
@@ -52,7 +53,7 @@ if [ `uname` = 'Linux' ]; then
did_anything=
if ps x | grep -s '[p]ostmaster' >/dev/null 2>&1 ; then
- echo "$CMDNAME: You still have a postmaster running." 1>&2
+ echo "$CMDNAME: a postmaster is still running" 1>&2
exit 1
fi