]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- nicer status output (shows names of DB clusters) auto/ac/postgresql-8_1_3-2
authorhawk <hawk@pld-linux.org>
Tue, 4 Apr 2006 17:32:35 +0000 (17:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postgresql.init -> 1.67

postgresql.init

index 8cabf3528d52664117a78e224c066f9fc25cf3e5..303a154f8e6ef585ac004d8199079dc37f759df7 100644 (file)
@@ -169,8 +169,14 @@ case "$action" in
        ;;
   status)
        for pgdir in $DB_CLUSTERS; do
-       TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -D $pgdir status"
-               done
+               pgstatus "$pgdir"
+               echo -n "$pgdir: "
+               if [ "$PG_STATUS" = "running" ]; then
+                       echo "$PG_STATUS (PID: $PG_PID)"
+               else
+                       echo "$PG_STATUS"
+               fi
+       done
        ;;
   restart)
        $0 stop "$DB_CLUSTERS"
This page took 0.101642 seconds and 4 git commands to generate.