correct ssb-server freezing/ restart

This commit is contained in:
qo-op 2020-06-06 14:43:18 +02:00
parent b8025902d6
commit 78333587ef
1 changed files with 0 additions and 3 deletions

View File

@ -25,9 +25,6 @@ if [[ "$WHOAMI" == "" ]]; then
kill -9 $(ps auxf --sort=+utime | grep -w 'ssb-server' | grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}')
kill -9 $(ps auxf --sort=+utime | grep -w 'oasis' | grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}')
ssb-server start &
sleep 10
export WHOAMI=$($MY_PATH/zen/tools/timeout.sh -t 3 sbotc whoami | jq -r .id) || er+=" sbotc whoami problem" # HAPPENS WHEN no ssb-server / patchork runs
[[ "$WHOAMI" == "" ]] && echo "ERROR! SSB LAYER NOT ACCESSIBLE" && exit 1
fi
########################################################################
# HELP DEVLT: Search "TODO" in code