aboutsummaryrefslogtreecommitdiffstats
path: root/main/slony1/default-config.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-12-24 11:06:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-12-24 11:06:22 +0000
commitbde7f799bbcb7b8d926207db4578983e7f2b8cbe (patch)
tree6948950a0373c8f57c3b59fd5371efc7b25d5edc /main/slony1/default-config.patch
parent335132a950b4bf6df52d8c064070af7ce55dfc20 (diff)
downloadaports-bde7f799bbcb7b8d926207db4578983e7f2b8cbe.tar.bz2
aports-bde7f799bbcb7b8d926207db4578983e7f2b8cbe.tar.xz
main/slony1: fix logrotation
we fix logrotation by only supporting syslog and not redirect the slon output to a given logfile. This is becase when redirecting, the only way to do log rotation is restart the service to reopen the log file. We do not want force restart of service which will close open connections.
Diffstat (limited to 'main/slony1/default-config.patch')
-rw-r--r--main/slony1/default-config.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/slony1/default-config.patch b/main/slony1/default-config.patch
new file mode 100644
index 0000000000..ebc60f8c2d
--- /dev/null
+++ b/main/slony1/default-config.patch
@@ -0,0 +1,11 @@
+--- ./share/slon.conf-sample.orig
++++ ./share/slon.conf-sample
+@@ -49,7 +49,7 @@
+ # still go to the standard output/error). The default is 0, which means
+ # syslog is off.
+ # Range: [0-2], default: 0
+-#syslog=0
++syslog=2
+
+ # If true, include the process ID on each log line. Default is false.
+ #log_pid=false