aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-logrotate
blob: 7bfee7245bf28990ed44623281860bfba7cd35e6 (plain)
1
2
3
4
5
6
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