From 0eff2acb1406d2d20833ddf4eeaaeae65a90b333 Mon Sep 17 00:00:00 2001 From: Robb Ebright Date: Sun, 6 Aug 2017 01:05:00 -0400 Subject: [PATCH] WIP adding log rotation --- .../airtime_analyzer/airtime-analyzer.logrotate | 11 +++++++++++ python_apps/pypo/pypo/airtime-playout.logrotate | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 python_apps/airtime_analyzer/airtime-analyzer.logrotate create mode 100644 python_apps/pypo/pypo/airtime-playout.logrotate diff --git a/python_apps/airtime_analyzer/airtime-analyzer.logrotate b/python_apps/airtime_analyzer/airtime-analyzer.logrotate new file mode 100644 index 000000000..76a0bd0ec --- /dev/null +++ b/python_apps/airtime_analyzer/airtime-analyzer.logrotate @@ -0,0 +1,11 @@ +/var/log/airtime/airtime_analyzer.log { + compress + rotate 10 + size 1000k + missingok + notifempty + sharedscripts + postrotate + start-stop-daemon --stop --signal USR1 --quiet --pidfile /var/run/airtime/airtime-liquidsoap.pid + endscript +} diff --git a/python_apps/pypo/pypo/airtime-playout.logrotate b/python_apps/pypo/pypo/airtime-playout.logrotate new file mode 100644 index 000000000..77bbc2c16 --- /dev/null +++ b/python_apps/pypo/pypo/airtime-playout.logrotate @@ -0,0 +1,11 @@ +/var/log/airtime/pypo/pypo.log { + compress + rotate 10 + size 1000k + missingok + notifempty + sharedscripts + postrotate + start-stop-daemon --stop --signal USR1 --quiet --pidfile /var/run/airtime/airtime-liquidsoap.pid + endscript +}