diff options
Diffstat (limited to 'lib/_ak_log')
-rwxr-xr-x | lib/_ak_log | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_ak_log b/lib/_ak_log index d2760e6..09eb1dc 100755 --- a/lib/_ak_log +++ b/lib/_ak_log @@ -36,10 +36,10 @@ _ak_log_grep(){ } _ak_log_rotate(){ - tar cvfz $AK_ARCHIVESDIR/logs_$(date -u +%s).tar.gz $AK_WORKDIR/akd.log $AK_WORKDIR/akd.err $AK_WORKDIR/logs + tar cvfz $AK_ARCHIVESDIR/logs_$(date -u +%s).tar.gz $AK_WORKDIR/logs + tar cvfz $AK_ARCHIVESDIR/akd-logs_$(date -u +%s).tar.gz $AK_WORKDIR/akd.log cat /dev/null > $AK_WORKDIR/akd.log - cat /dev/null > $AK_WORKDIR/akd.err cat /dev/null > $AK_WORKDIR/logs } |