Add support to configure postgress to log to logger server.
authorAndy Witter <awitter@georgialibraries.org>
Fri, 17 Jan 2014 12:25:13 +0000 (07:25 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Fri, 17 Jan 2014 12:25:13 +0000 (07:25 -0500)
Signed-off-by: Andy Witter <awitter@georgialibraries.org>
templates/setup.sh

index 54bdac8..986a5c6 100755 (executable)
@@ -339,6 +339,9 @@ then
                #echo "kernel.shmall = 4194304" >> /etc/sysctl.d/evergreen_db.conf #TODO dislbed for now
                Install_DB_Deps
                sed -i "s^#listen_addresses = 'localhost'^listen_addresses = '*'^g" /etc/postgresql/9.1/main/postgresql.conf
+               sed -i "s^#log_destination = 'stderr'^log_destination = 'syslog'^g" /etc/postgresql/9.1/main/postgresql.conf
+               sed -i "s^#syslog_facility = 'LOCAL0'^syslog_facility = 'LOCAL3'^g" /etc/postgresql/9.1/main/postgresql.conf
+               sed -i "s^#syslog_ident = 'postgres'^syslog_ident = 'postgres'^g" /etc/postgresql/9.1/main/postgresql.conf
                #Init_DB_9 #TODO disabled. Now done the new way from the 1st brick head.
                Add_EG_DB_User #TODO disabled same as above