- changed milestone to 0.1.5 - Multiple custodians + critical fixes
Run NuBot using a script that intercept nubot shutdowns (and act)
Issue #192
wontfix
Since the java is not able to intercept a kill -9 event, NuBot should be wrapped around a script that detects it (see [1]) and clear active orders and liquidityinfo .
The solution below is only valid for unix system, while we want to make it system independent :
#!/bin/bash
#Concatenate arguments
args=""
for var in "$@"
do
args+=$var
done
echo "$args"
java -jar NuBot $args
wait
# It gets here when the app quits, even with forced kill -9 <pid>
echo "NuBot was shut down. Executing the termination script to make sure all orders are cleaned up and liquidity info reset"
# Execute the cleanup using the same arguments
#java -jar NuBot kill $args
Comments (17)
-
reporter -
reporter - changed milestone to 0.2.1 - Liquidity distribution model
-
reporter - changed title to Run NuBot using a script that intercept nubot shutdowns (and act)
- edited description
-
reporter - edited description
-
reporter unix script demo added in branch feature/192-startStop-script
-
reporter - edited description
-
reporter added two runnable classes in launch package aimed at cleaning up liquidity and orders
-
maybe relevant: http://barelyenough.org/blog/2005/03/java-daemon/
-
reporter see also
#225 -
A complete daemonization is not trivial. Perhaps there are some out of the box solutions...
-
reporter Merged the feature/192-startStop-script with develop, resolve this issue and open a new one
-
- changed milestone to 0.3.1 - Price-feed streaming service implementation
-
reporter - changed milestone to 0.2.1 - Price-feed streaming service implementation
-
reporter - changed milestone to 0.3.1 - Liquidity distribution model
-
reporter - changed milestone to 0.3.3 - Liquidity distribution model
-
reporter - changed milestone to 0.3.2 - Liquidity distribution model (t2)
-
reporter - changed status to wontfix
hooks works fine now
- Log in to comment