Howto: auto re-run Gekko on crash
#1
Sometimes it happens that some error will occur in Gekko and the program will turn off, for example when we have runned Gekkos live trade. 

We can overcome this by simply loops in Bash.
Code:
#!/bin/bash
for i in {1..10}
do
$1
done
1. Save above code to loop.bash file and copy to Gekko directory.
2. $ chmod +x loop.bash
3. $ ./loop.bash "node gekko -c config.js"

After turning off Gekko, the script will launch Gekko again. He will repeat the action 10 times.
  Reply
#2
thank you
how does it work for (ui) mod
  Reply
#3
It dont working for UI Live Trader only for CLI.
  Reply
#4
thank you

I found the following command

forever start -a ~/gekko/gekko.js --ui
forever stop ~/gekko/gekko.js --ui

-a flag is to keep a log.
  Reply
#5
Hi guys, i cant get either of these to work and Gekko crashes out at 5am each morning for reasons unknown, any other solutions for tit o auto connect for me?
  Reply
#6
When you will do it wrong you will find a crash or error on the front page. When you found it you must get paper now review to fix this error by paying some money.
  Reply
#7
Where do i find "loop.bash" file?
I'm using operating system "Raspian" on a Raspberry Pi.

Thanks
  Reply
#8
Cool! thanks
  Reply


Forum Jump:


Users browsing this thread: