From c47183f6a323e9ae3697ce28136c4a23570aae05 Mon Sep 17 00:00:00 2001 From: qo-op Date: Sat, 6 Jun 2020 16:09:53 +0200 Subject: [PATCH] try to control ssb-server #!/bin/bash while true; do ssb-server start sleep 3 done --- cron_MINUTE.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 4dd02cd..24ea84b 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -21,12 +21,12 @@ export WHOAMI=$($MY_PATH/zen/tools/timeout.sh -t 3 sbotc whoami | jq -r .id) if [[ "$WHOAMI" == "" ]]; then ### oasis ssb-server not responding!!! - [[ ! $(whereis ssb-server) ]] && echo "sboc/SSB-SERVER IMPOSSIBLE..." && exit 1 - 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 22 - oasis --allow-host oasis.astroport.com --host oasis.astroport.com & + echo "sboc <-> SSB-SERVER IMPOSSIBLE..." + # 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 22 + # oasis --allow-host oasis.astroport.com --host oasis.astroport.com & fi ######################################################################## # HELP DEVLT: Search "TODO" in code