aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-07 03:00:11 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-07 03:00:11 +0300
commit4701665aa82de2e9f96a8f983ce6b90bdf668da1 (patch)
treec0f9fa1f4d5ff87eb878f61d42bffcdb018b7a7d /bin
parentda69da62543cad0ab4120f7a28bb85f4dc849c0b (diff)
downloadarching-kaos-tools-4701665aa82de2e9f96a8f983ce6b90bdf668da1.tar.gz
arching-kaos-tools-4701665aa82de2e9f96a8f983ce6b90bdf668da1.tar.bz2
arching-kaos-tools-4701665aa82de2e9f96a8f983ce6b90bdf668da1.zip
Refactoring
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak-log-rotate7
-rwxr-xr-xbin/ak-startup2
2 files changed, 3 insertions, 6 deletions
diff --git a/bin/ak-log-rotate b/bin/ak-log-rotate
index ddf8f84..bac076c 100755
--- a/bin/ak-log-rotate
+++ b/bin/ak-log-rotate
@@ -1,7 +1,4 @@
#!/bin/bash
+source $AK_LIBDIR/_ak_log
-tar cvfz $AK_ARCHIVESDIR/logs_$(date -u +%s).tar.gz $AK_WORKDIR/logs
-
-cat /dev/null > $AK_WORKDIR/akd.log
-cat /dev/null > $AK_WORKDIR/akd.err
-cat /dev/null > $AK_WORKDIR/logs
+_ak_log_rotate
diff --git a/bin/ak-startup b/bin/ak-startup
index 66a100d..bd1d582 100755
--- a/bin/ak-startup
+++ b/bin/ak-startup
@@ -5,5 +5,5 @@ source $HOME/.arching-kaos/rc
ak-ipfs-starter
ak-log-rotate
# screen -dmS akdaemon
-ak-daemon > $AK_WORKDIR/akd.log 2> $AK_WORKDIR/akd.err & printf '%s' "$!" > $AK_WORKDIR/akd.pid
+ak-daemon > $AK_WORKDIR/akd.log 2>&1 & printf '%s' "$!" > $AK_WORKDIR/akd.pid
# ak-logfollow