]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- fix in checking is netforking is up.
authorkloczek <kloczek@pld-linux.org>
Thu, 5 Aug 1999 20:53:33 +0000 (20:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postgresql.init -> 1.5

postgresql.init

index 4dbc321e52d7d9448010a6fe7a693dfb07f700ac..283e2007ee78083841b54748c2e45a92e5aa9be1 100644 (file)
 [ -f /etc/sysconfig/postgresql ] && . /etc/sysconfig/postgresql
 
 # Check that networking is up.
-[ "${NETWORKING}" = "no" ] && echo "Error: Networking is down" && exit 0
+if [ "${NETWORKING}" = "no" ]; then
+       echo "WARNING: Networking is down. Postgresql service can't be runed."
+       exit 1
+fi
 
 # Sanity check
 [ -f /tmp/.s.PGSQL.5432 ] || rm -f /tmp/.s.PGSQL.5432
This page took 0.257401 seconds and 4 git commands to generate.