From a56e62f2a9f5765af8294f77658b2ec9d7effc1e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Aug 2016 03:16:08 +0300 Subject: herculeswrapper: add support for rebuild code. --- herculeswrapper/include.sh | 6 ++++++ herculeswrapper/map.sh | 9 +++++++++ 2 files changed, 15 insertions(+) (limited to 'herculeswrapper') diff --git a/herculeswrapper/include.sh b/herculeswrapper/include.sh index f9f4704..6e0257c 100644 --- a/herculeswrapper/include.sh +++ b/herculeswrapper/include.sh @@ -90,3 +90,9 @@ function build_all { cat err.txt cd ../server-data } + +function build_clean { + cd ../tools/localserver + ./clean.sh + cd ../../server-data +} diff --git a/herculeswrapper/map.sh b/herculeswrapper/map.sh index f55f2d9..9efa0a4 100755 --- a/herculeswrapper/map.sh +++ b/herculeswrapper/map.sh @@ -49,5 +49,14 @@ while [ 1 ] ; do send_all_pipes "restart" sleep 5s ;; + 106) + echo "Rebuild all servers" + sleep 5s + build_clean + build_all + echo "Restarting all servers..." + send_all_pipes "restart" + sleep 5s + ;; esac done -- cgit v1.2.3-70-g09d2