aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ContainerFile2
-rwxr-xr-xbin/ak-ipfs-daemon2
-rwxr-xr-xlib/_ak_ipfs7
3 files changed, 9 insertions, 2 deletions
diff --git a/ContainerFile b/ContainerFile
index 4d72ecc..565fc26 100644
--- a/ContainerFile
+++ b/ContainerFile
@@ -11,6 +11,6 @@ EXPOSE 4001/tcp
EXPOSE 5001/tcp
EXPOSE 8080/tcp
EXPOSE 8610/tcp
-ENTRYPOINT ["/root/.arching-kaos/bin/ak-startup", "--podman"]
+ENTRYPOINT ["/root/.arching-kaos/bin/ak-startup", "--start", "--podman"]
diff --git a/bin/ak-ipfs-daemon b/bin/ak-ipfs-daemon
index 470461a..6ae4aa3 100755
--- a/bin/ak-ipfs-daemon
+++ b/bin/ak-ipfs-daemon
@@ -20,7 +20,7 @@ if [ ! -z $1 ]
then
case $1 in
-h | --help) _ak_usage; exit;;
- -d | --daemon) _ak_ipfs daemon; exit;;
+ -d | --daemon) _ak_ipfs_starter; exit;;
* ) _ak_usage;;
esac
else _ak_usage
diff --git a/lib/_ak_ipfs b/lib/_ak_ipfs
index 2a8fc77..2adb8ce 100755
--- a/lib/_ak_ipfs
+++ b/lib/_ak_ipfs
@@ -330,6 +330,13 @@ _ak_ipfs_starter(){
_ak_log_error "Failed to start IPFS daemon"
exit 1
fi
+ akipfsdpid="$(cat $AK_WORKDIR/akipfsd.pid)"
+ ps $akipfsdpid
+ if [ $? -ne 0 ]
+ then
+ _ak_log_error "Failed to start IPFS daemon PID $akipfsdpid"
+ exit 1
+ fi
}
_ak_ipns_resolve(){