aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-startup
blob: 87d1fe30885d7d84c2a9745e38c3158c25a55d97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
source $HOME/.arching-kaos/rc
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
fi