Browse Source

IPFS vstream test list

master
qo-op 1 month ago
parent
commit
5b69fb0500
2 changed files with 9 additions and 18 deletions
  1. +7
    -18
      cron_MINUTE.sh
  2. +2
    -0
      www/LOVELand/vstream/test

+ 7
- 18
cron_MINUTE.sh View File

@ -63,7 +63,7 @@ echo $timebar
#/ /_/ // (__ ) / / / / (__ )
#\____//_/____/_/ /_/ /_/____/
#
$MY_PATH/g1sms/sms_ASTROPORT.sh
# $MY_PATH/g1sms/sms_ASTROPORT.sh
# TIME NTP SYNC: TODO: Problem being root (stickybit INSTALL?)
# G1Tx. G1sms. G1Dab Zen economy needs precise time sync (RpiZero !!)
@ -82,20 +82,6 @@ if [[ $(($minute % 5)) == 0 ]]; then
#######################################
sleep $((1 + RANDOM % 12))
git pull
### CHECK IF sbotc is working
if [[ "$($MY_PATH/zen/tools/timeout.sh -t 8 sbotc whoami | jq -r .id)" == "" ]]; then
### ssb-server not responding!!!
echo "sbotc <-> ssb-server communication broken... YOU SHOULD restart ssb-server or go-sbot !"
# ssb_process=$(ps auxf --sort=+utime | grep -w 'ssb-server' | grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}')
# kill -9 $ssb_process; sleep 5
# ssb_newprocess=$(ps auxf --sort=+utime | grep -w 'ssb-server' | grep -v -E 'color=auto|grep' | tail -n 1 | awk '{print $2}')
# if [[ ! $ssb_newprocess ]]; then
# ssbbin=$(which ssb-server)
# [[ ! -f ~/.zen/ssb-server.start ]] && echo "while true; do $ssbbin start; sleep 3; done" > ~/.zen/ssb-server.start && chmod 755 ~/.zen/ssb-server.start
# ~/.zen/ssb-server.start &
# fi
fi
fi
# __________ ____ __ ________ ___________
@ -111,9 +97,12 @@ fi
# /_//_/ /____/|__/|__/\__,_/_/ /_/ /_/ /_/\____/
#
##################################################################
# REFRESH IPFS SWARM DATA EVERY 12 & 15 minutes
[[ $(($minute % 12)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/zen/ssb_IPFS_swarm.sh &
# REFRESH IPFS SWARM DATA EVERY 12 & 15 minutes
[[ $(($minute % 12)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/zen/gchange_IPFS_swarm.sh &
[[ $(($minute % 15)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/zen/ipfs_SWARM_refresh.sh &
## TODO investigate could breaks "ipfs p2p" forwards ?
##################################################################
@ -213,7 +202,7 @@ echo '
##################################################################
# ssb_INIT + LOG ROTATE EVERY SUNDAY # TODO /var/log/ + logrotate (& tempfiles in /tmp in RAMFS)
if [[ $dayoftheweek == 0 ]]; then
$MY_PATH/zen/ssb_INIT.sh &
$MY_PATH/zen/gchange_INIT.sh &
tar cvzf ~/.zen/astroport.$weeknumber.log.tgz /tmp/astroport.log # LOG BACKUP FOR 1 YEAR !!
fi
#### DESYNC

+ 2
- 0
www/LOVELand/vstream/test View File

@ -0,0 +1,2 @@
TITLE;URLS
Klangkarussell - Celebrate;['http://localhost:8080/ipfs/QmNnCadHkbbpdfWLNc7441V8Kt17eSgAkS16qg73tpZ5E7/celebrate.mkv']

Loading…
Cancel
Save