summaryrefslogtreecommitdiff
path: root/puppet/modules/obfsproxy/files/obfsproxy_logrotate
diff options
context:
space:
mode:
authorirregulator <irregulator@riseup.net>2014-05-23 17:28:32 +0300
committerelijah <elijah@riseup.net>2014-07-01 16:05:41 -0700
commit7a54923591125894440b9ff7020e4b413a1c6fb5 (patch)
treeb54089264bdd00ad8ea333a60ffea2e3eccc1f71 /puppet/modules/obfsproxy/files/obfsproxy_logrotate
parent2f318f0be937f0bace467640f4011ba422a736b7 (diff)
Address logging for obfsproxy daemon
Create obfsproxy directory in /var/log, specify log file when obfsproxy is spawned by init script, create a logrotate configuration for obfsproxy's logs.
Diffstat (limited to 'puppet/modules/obfsproxy/files/obfsproxy_logrotate')
-rw-r--r--puppet/modules/obfsproxy/files/obfsproxy_logrotate14
1 files changed, 14 insertions, 0 deletions
diff --git a/puppet/modules/obfsproxy/files/obfsproxy_logrotate b/puppet/modules/obfsproxy/files/obfsproxy_logrotate
new file mode 100644
index 00000000..623bbab1
--- /dev/null
+++ b/puppet/modules/obfsproxy/files/obfsproxy_logrotate
@@ -0,0 +1,14 @@
+/var/log/obfsproxy/log {
+ weekly
+ missingok
+ rotate 10
+ compress
+ delaycompress
+ notifempty
+ create 600 obfsproxy obfsproxy
+ postrotate
+ if [ -f /var/run/obfsproxy.pid ]; then
+ /etc/init.d/obfsproxy restart > /dev/null
+ fi
+ endscript
+}