reviewed comments - no change
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 7 Jun 2011 12:00:27 +0000 (14:00 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 7 Jun 2011 12:00:27 +0000 (14:00 +0200)
plc.d/postgresql

index 7e340f0..93cac8c 100755 (executable)
@@ -79,8 +79,9 @@ case "$1" in
            check
        fi
 
-       # Enable DB server. PostgreSQL >=8.0 defines listen_addresses,
-       # when run within a vserver, this may require localhost to be specified explicitly
+       # Enable DB server. drop Postgresql<=7.x
+       # PostgreSQL >=8.0 defines listen_addresses
+       # listen on a specific IP + localhost, more robust when run within a vserver
        sed -i -e '/^listen_addresses/d' $postgresql_conf
        echo "listen_addresses = '${PLC_DB_HOST},localhost'" >> $postgresql_conf
        # tweak timezone to be 'UTC'