comparison contrib/dashboardctl @ 35:295e3253bb49

Wait for bottledash to get ready after starting it
author Gernot Schulz <gernot@intevation.de>
date Mon, 19 Oct 2015 13:30:30 +0200
parents 7162616389a5
children 1e084c23d101
comparison
equal deleted inserted replaced
34:7162616389a5 35:295e3253bb49
27 27
28 start_bottledash () { 28 start_bottledash () {
29 # taken from start-bottledash-hohup 29 # taken from start-bottledash-hohup
30 nohup python3 /home/pi/bottledash/dash.py 2>&1 > $BOTTLEDASH_LOG & 30 nohup python3 /home/pi/bottledash/dash.py 2>&1 > $BOTTLEDASH_LOG &
31 echo $! > $BOTTLEDASH_PID 31 echo $! > $BOTTLEDASH_PID
32 sleep 10
32 } 33 }
33 34
34 stop_bottledash () { 35 stop_bottledash () {
35 kill $(cat $BOTTLEDASH_PID) 36 kill $(cat $BOTTLEDASH_PID)
36 } 37 }
88 xdo_reload_chromium 89 xdo_reload_chromium
89 ;; 90 ;;
90 '--reload') 91 '--reload')
91 stop_bottledash 92 stop_bottledash
92 start_bottledash 93 start_bottledash
93 sleep 10
94 xdo_reload_chromium 94 xdo_reload_chromium
95 ;; 95 ;;
96 '--check-db') 96 '--check-db')
97 check_new_db 97 check_new_db
98 ;; 98 ;;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)