aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-ipfs-starter
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-ipfs-starter')
-rwxr-xr-xbin/ak-ipfs-starter6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ak-ipfs-starter b/bin/ak-ipfs-starter
index 5cab1c3..35b9168 100755
--- a/bin/ak-ipfs-starter
+++ b/bin/ak-ipfs-starter
@@ -1,2 +1,8 @@
#!/bin/bash
+PROGRAM="$(basename $0)"
screen -dmS ipfs-daemon ipfs daemon
+if [ "$?" != "0" ]
+then
+ ak-logthis "<$PROGRAM>" "[ERROR]" "Failed to start IPFS daemon"
+ exit 1
+fi