From ff50b15c8c7206bd89c131043570e42b74669177 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Sun, 2 Aug 2015 15:10:32 +0200 Subject: [PATCH] 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 --- bin/{yiic => yiimp} | 0 bin/yiimp_restart_loop.sh | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) rename bin/{yiic => yiimp} (100%) create mode 100755 bin/yiimp_restart_loop.sh diff --git a/bin/yiic b/bin/yiimp similarity index 100% rename from bin/yiic rename to bin/yiimp diff --git a/bin/yiimp_restart_loop.sh b/bin/yiimp_restart_loop.sh new file mode 100755 index 0000000..2fb52f3 --- /dev/null +++ b/bin/yiimp_restart_loop.sh @@ -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 +