diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-09 06:52:03 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-09 06:52:03 +0300 |
commit | ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888 (patch) | |
tree | 38c4c4972844d8616f220aa65e00b265ff7945ec /bin/ak-startup | |
parent | 1a572d674b2c94bbe5b094f563c4875c77575227 (diff) | |
download | arching-kaos-tools-ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888.tar.gz arching-kaos-tools-ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888.tar.bz2 arching-kaos-tools-ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888.zip |
Refactoring
Diffstat (limited to 'bin/ak-startup')
-rwxr-xr-x | bin/ak-startup | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/ak-startup b/bin/ak-startup index 7a67e58..87d1fe3 100755 --- a/bin/ak-startup +++ b/bin/ak-startup @@ -1,12 +1,14 @@ #!/bin/bash -PATH=$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:$HOME/bin:$HOME/.arching-kaos/bin -#screen -dmS ipfs-daemon ipfs daemon source $HOME/.arching-kaos/rc -ak-ipfs-starter -ak-log-rotate -# screen -dmS akdaemon +PATH=$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:$HOME/bin:$AK_WORKDIR/bin + +source $AK_LIBDIR/_ak_ipfs +source $AK_LIBDIR/_ak_log +_ak_ipfs_starter +_ak_log_rotate + ak-daemon > $AK_WORKDIR/akd.log 2>&1 & printf '%s' "$!" > $AK_WORKDIR/akd.pid if [ ! -z $1 ] && [ -n "$1" ] && [ "$1" == "--podman" ] then - ak log follow + _ak_log_follow fi |