2016-01-19 10:41:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-11-13 15:54:39 +00:00
|
|
|
GREEN="\\033[1;32m"
|
|
|
|
DEFAULT="\\033[0;39m"
|
|
|
|
RED="\\033[1;31m"
|
|
|
|
ROSE="\\033[1;35m"
|
|
|
|
BLUE="\\033[1;34m"
|
|
|
|
WHITE="\\033[0;02m"
|
|
|
|
YELLOW="\\033[1;33m"
|
|
|
|
CYAN="\\033[1;36m"
|
2016-01-19 10:41:03 +00:00
|
|
|
|
2017-08-23 10:28:12 +00:00
|
|
|
[ -z "$AIL_HOME" ] && echo "Needs the env var AIL_HOME. Run the script from the virtual environment." && exit 1;
|
|
|
|
|
2016-01-19 10:41:03 +00:00
|
|
|
conf_dir="${AIL_HOME}/configs/"
|
|
|
|
|
2018-11-13 15:54:39 +00:00
|
|
|
screen -dmS "Redis_AIL"
|
2016-01-19 10:41:03 +00:00
|
|
|
sleep 0.1
|
|
|
|
echo -e $GREEN"\t* Launching Redis servers"$DEFAULT
|
2018-11-13 15:54:39 +00:00
|
|
|
screen -S "Redis_AIL" -X screen -t "6379" bash -c 'redis-server '$conf_dir'6379.conf ; read x'
|
2016-01-19 10:41:03 +00:00
|
|
|
sleep 0.1
|
2018-11-13 15:54:39 +00:00
|
|
|
screen -S "Redis_AIL" -X screen -t "6380" bash -c 'redis-server '$conf_dir'6380.conf ; read x'
|
2016-01-19 10:41:03 +00:00
|
|
|
sleep 0.1
|
2018-11-13 15:54:39 +00:00
|
|
|
screen -S "Redis_AIL" -X screen -t "6381" bash -c 'redis-server '$conf_dir'6381.conf ; read x'
|