]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- even nicer status output
authorhawk <hawk@pld-linux.org>
Wed, 5 Jul 2006 09:53:10 +0000 (09:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postgresql.init -> 1.68

postgresql.init

index 303a154f8e6ef585ac004d8199079dc37f759df7..0644e645d02e6f92eee9b9a37a76c3b50c9d12e7 100644 (file)
@@ -170,12 +170,14 @@ case "$action" in
   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)
This page took 0.132045 seconds and 4 git commands to generate.