rename yiic command to yiimp + loop restart script

The loop processing earnings and payments can lock sometimes...
I guess its related to unreachable/broken api on exchanges sites
This commit is contained in:
Tanguy Pruvot 2015-08-02 15:10:32 +02:00
parent 4ae2e97ff9
commit ff50b15c8c
2 changed files with 17 additions and 0 deletions

View file

17
bin/yiimp_restart_loop.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
# Restart the pseudo cron screens...
LOG_DIR=/work/yiimp/log
WEB_DIR=/var/web
screen -X -S main quit
screen -X -S loop2 quit
screen -X -S blocks quit
screen -X -S debug quit
screen -dmS main $WEB_DIR/main.sh
screen -dmS loop2 $WEB_DIR/loop2.sh
screen -dmS blocks $WEB_DIR/blocks.sh
screen -dmS debug tail -f $LOG_DIR/debug.log