]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- added support for /etc/sysconfig/postgresql
authorwaszi <waszi@pld-linux.org>
Sun, 5 Dec 1999 17:51:54 +0000 (17:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postgresql.init -> 1.7

postgresql.init

index 80efd9d75dc4c414178486c3542bedf4b756b232..7086c703499ec5245c316f7b67bbf582247d6f00 100644 (file)
 . /etc/sysconfig/network
 
 # Get service config
-[ -f /etc/sysconfig/postgresql ] && . /etc/sysconfig/postgresql
+if [ -f /etc/sysconfig/syslog ] ; then
+        . /etc/sysconfig/syslog
+else
+        ALLOW_TCP=no
+fi
+
+if [ "$ALLOW_TCP" = yes ]; then
+       ALLOW_TCP="-i"
+else
+       ALLOW_TCP=""
+fi
+
 
 # Check that networking is up.
 if [ "${NETWORKING}" = "no" ]; then
@@ -36,7 +47,7 @@ case "$1" in
        if [ ! -f /var/lock/subsys/postgresql ]; then
                show Starting postgresql
                busy
-               su postgres -c "/usr/bin/postmaster -D /var/state/pgsql"
+               su postgres -c "/usr/bin/postmaster $ALLOW_TCP $OPTIONS -D /var/state/pgsql" &
                
                if ps ax | grep -v grep | grep -q postmaster; then
                    deltext;ok
This page took 0.060176 seconds and 4 git commands to generate.