]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
updated
authorwaszi <waszi@pld-linux.org>
Tue, 30 Nov 1999 09:12:25 +0000 (09:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postgresql.init -> 1.6

postgresql.init

index 283e2007ee78083841b54748c2e45a92e5aa9be1..80efd9d75dc4c414178486c3542bedf4b756b232 100644 (file)
@@ -11,7 +11,6 @@
 # processname: postmaster
 # pidfile:     /var/run/postmaster.pid
 
-
 # Source function library
 . /etc/rc.d/init.d/functions
 
@@ -30,7 +29,6 @@ fi
 # Sanity check
 [ -f /tmp/.s.PGSQL.5432 ] || rm -f /tmp/.s.PGSQL.5432
 
-
 # See how we were called.
 case "$1" in
   start)
@@ -38,10 +36,13 @@ case "$1" in
        if [ ! -f /var/lock/subsys/postgresql ]; then
                show Starting postgresql
                busy
-               su postgres -c '/usr/bin/postmaster
-               touch /var/lock/subsys/postgresql
-               deltext
-               ok
+               su postgres -c "/usr/bin/postmaster -D /var/state/pgsql"
+               
+               if ps ax | grep -v grep | grep -q postmaster; then
+                   deltext;ok
+               else
+                   deltext;fail
+               fi
        else
                echo "Postgresql already is running"
        fi
This page took 0.238625 seconds and 4 git commands to generate.