From e4f18be94261b39544ef3bc50321f6aedeb45bd6 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 31 Mar 2024 12:00:59 +0300 Subject: huge refactor, might breaking things --- bin/ak-log-rotate | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bin/ak-log-rotate (limited to 'bin/ak-log-rotate') diff --git a/bin/ak-log-rotate b/bin/ak-log-rotate new file mode 100755 index 0000000..7bfee72 --- /dev/null +++ b/bin/ak-log-rotate @@ -0,0 +1,7 @@ +#!/bin/bash + +tar cvfz $AK_ARCHIVESDIR/logs_$(date -u +%s).tar.gz $AK_WORKDIR/akd.log $AK_WORKDIR/akd.err $AK_WORKDIR/logs + +cat /dev/null > $AK_WORKDIR/akd.log +cat /dev/null > $AK_WORKDIR/akd.err +cat /dev/null > $AK_WORKDIR/logs -- cgit v1.2.3