SOURCES: postgresql.init - even nicer status output
hawk
hawk at pld-linux.org
Wed Jul 5 11:53:16 CEST 2006
Author: hawk Date: Wed Jul 5 09:53:15 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- even nicer status output
---- Files affected:
SOURCES:
postgresql.init (1.67 -> 1.68)
---- Diffs:
================================================================
Index: SOURCES/postgresql.init
diff -u SOURCES/postgresql.init:1.67 SOURCES/postgresql.init:1.68
--- SOURCES/postgresql.init:1.67 Tue Apr 4 19:32:35 2006
+++ SOURCES/postgresql.init Wed Jul 5 11:53:10 2006
@@ -170,12 +170,14 @@
status)
for pgdir in $DB_CLUSTERS; do
pgstatus "$pgdir"
- echo -n "$pgdir: "
if [ "$PG_STATUS" = "running" ]; then
- echo "$PG_STATUS (PID: $PG_PID)"
+ show "PostgreSQL cluster %s, PID %s" "$pgdir" "$PG_PID"
+ progress "$PG_STATUS"
else
- echo "$PG_STATUS"
+ show "PostgreSQL cluster %s" "$pgdir"
+ progress "$PG_STATUS" "$CFAIL"
fi
+ echo
done
;;
restart)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/postgresql.init?r1=1.67&r2=1.68&f=u
More information about the pld-cvs-commit
mailing list