summarylogtreecommitdiffstats
path: root/cellframe-node-logrotate.timer
diff options
context:
space:
mode:
authorMika Hyttinen2024-01-06 12:53:58 +0200
committerMika Hyttinen2024-01-06 12:53:58 +0200
commitb1a87a9e69fb98a4d5b563fea79a7c6f06933f45 (patch)
tree8c70110b810357729983f2ea429375d6e9963ad7 /cellframe-node-logrotate.timer
parent608025c61a4bede1ff4834181a94ca259405bce3 (diff)
downloadaur-b1a87a9e69fb98a4d5b563fea79a7c6f06933f45.tar.gz
Add new files for more aggressive log rotation (enable with systemctl enable --now cellframe-node-logrotate.timer). Modify cellframe-node service to disable stdout to journal.
Diffstat (limited to 'cellframe-node-logrotate.timer')
-rw-r--r--cellframe-node-logrotate.timer11
1 files changed, 11 insertions, 0 deletions
diff --git a/cellframe-node-logrotate.timer b/cellframe-node-logrotate.timer
new file mode 100644
index 000000000000..6eeef8a6f8b2
--- /dev/null
+++ b/cellframe-node-logrotate.timer
@@ -0,0 +1,11 @@
+[Unit]
+Description="Logrotate cellframe-node.log files"
+
+[Timer]
+OnBootSec=5min
+OnCalendar=*-*-* *:00:00
+Persistent=True
+Unit=cellframe-node-logrotate.service
+
+[Install]
+WantedBy=timers.target \ No newline at end of file