]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- updated to rc-scripts 0.2.0
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 28 Mar 2000 12:59:56 +0000 (12:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postgresql.init -> 1.13

postgresql.init

index ef0bb663487d8f1c77b85df4016f9c116800e6a5..28b2c798c049e32400e17b9589f3f096b7e9b2e4 100644 (file)
@@ -26,8 +26,8 @@ else
 fi
 
 # Check that networking is up.
-if [ "${NETWORKING}" = "no" ]; then
-       echo "WARNING: Networking is down. Postgresql service can't be runed."
+if is_no "${NETWORKING}"; then
+       msg_Network_Down Postgresql
        exit 1
 fi
 
@@ -55,7 +55,7 @@ case "$1" in
                        mkdir -p $POSTGRES_DATA_DIR
                        chown postgres.postgres $POSTGRES_DATA_DIR
                    fi
-                   show Creating postgresql init database
+                   show "Creating postgresql init database"
                    busy
                    su postgres -c "LD_LIBRARY_PATH=/usr/lib \
                        initdb --pgdata=$POSTGRES_DATA_DIR \
@@ -79,12 +79,12 @@ case "$1" in
                        deltext; fail
                fi
        else
-               echo "Postgresql already is running"
+               msg_Already_Running Postgresql
        fi
        touch /var/lock/subsys/postgresql
        ;;
   stop)
-       show Stopping postgresql service
+       msg_stopping postgresql
        killproc postmaster
        sleep 2
        rm -f /var/run/postmaster.pid
@@ -98,7 +98,7 @@ case "$1" in
        $0 start
        ;;
   *)
-       echo "Usage: postgresql {start|stop|status|restart|reload}"
+       msg_Usage "$0 {start|stop|status|restart|reload}"
        exit 1
 esac
 
This page took 0.053085 seconds and 4 git commands to generate.