Author: qboosh Date: Thu Feb 17 12:06:02 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- reverted: issue already resolved, "su -" could cause unwanted importing of
profiles etc.
---- Files affected:
SOURCES:
postgresql.init (1.62 -> 1.63)
---- Diffs:
================================================================
Index: SOURCES/postgresql.init
diff -u SOURCES/postgresql.init:1.62 SOURCES/postgresql.init:1.63
--- SOURCES/postgresql.init:1.62 Thu Feb 17 09:55:38 2005
+++ SOURCES/postgresql.init Thu Feb 17 13:05:56 2005
@@ -71,7 +71,7 @@
pgstatus() {
PG_STATUS="unknown"
PG_PID="unknown"
- output=`TMPDIR=/tmp su - postgres -c "/usr/bin/pg_ctl -D $1 status"`
+ output=`TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -D $1 status"`
status=`echo $?`
if [ $status -eq 1 ]; then
@@ -92,7 +92,7 @@
pgstart() {
msg_starting "PostgreSQL $1"
busy
- TMPDIR=/tmp su - postgres -c "/usr/bin/pg_ctl -w -D $1 start 2>&1
>/dev/null"
+ TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -w -D $1 start 2>&1
>/dev/null"
sleep 1
pgstatus "$1"
@@ -159,7 +159,7 @@
busy
# is postgresql really alive?
if ps ax | grep -v grep | grep -q "$PG_PID"; then
- TMPDIR=/tmp su - postgres -c "/usr/bin/pg_ctl
-w -D $pgdir stop -m fast 2>&1 >/dev/null"
+ TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -w
-D $pgdir stop -m fast 2>&1 >/dev/null"
pgstatus "$pgdir"
if [ "$PG_STATUS" != "not running" ]; then
fail
@@ -178,7 +178,7 @@
;;
status)
for pgdir in $DB_CLUSTERS; do
- TMPDIR=/tmp su - postgres -c "/usr/bin/pg_ctl -D $pgdir status"
+ TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -D $pgdir status"
done
;;
restart)
@@ -195,7 +195,7 @@
busy
# is postgresql really alive?
if ps ax | grep -v grep | grep -q "$PG_PID"; then
- TMPDIR=/tmp su - postgres -c "/usr/bin/pg_ctl
-D $pgdir restart 2>&1 >/dev/null"
+ TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -D
$pgdir restart 2>&1 >/dev/null"
pgstatus "$pgdir"
if [ "$PG_STATUS" = "running" ]; then
ok
@@ -225,7 +225,7 @@
mkdir -p $pgdir
chmod 700 $pgdir
chown postgres:postgres $pgdir
- TMPDIR=/tmp su - postgres -s /bin/sh -c "initdb -E
UNICODE -D $pgdir"
+ TMPDIR=/tmp su postgres -s /bin/sh -c "initdb -E
UNICODE -D $pgdir"
fi
done
echo $(nls "REMEMBER to setup password for user \"postgres\"")'!'
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/postgresql.init?r1=1.62&r2=1.63&f=u
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit