diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-31 12:00:59 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-31 12:00:59 +0300 |
commit | e4f18be94261b39544ef3bc50321f6aedeb45bd6 (patch) | |
tree | 2c79daf0bdc91beb91846f00bb3d3f51236967cf /bin/ak-log-rotate | |
parent | 23a61661f03c03a357ad8aa47ba3595fabe24de1 (diff) | |
download | arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.tar.gz arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.tar.bz2 arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.zip |
huge refactor, might breaking things
Diffstat (limited to 'bin/ak-log-rotate')
-rwxr-xr-x | bin/ak-log-rotate | 7 |
1 files changed, 7 insertions, 0 deletions
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 |