]> git.pld-linux.org Git - packages/postgresql.git/blobdiff - postgresql.init
- added support for /etc/sysconfig/postgresql
[packages/postgresql.git] / 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.035958 seconds and 4 git commands to generate.