aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak-logrotate7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ak-logrotate b/bin/ak-logrotate
new file mode 100755
index 0000000..7bfee72
--- /dev/null
+++ b/bin/ak-logrotate
@@ -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