ail-framework/bin/launch_redis.sh

24 lines
710 B
Bash
Raw Normal View History

2016-01-19 10:41:03 +00:00
#!/bin/bash
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/"
screen -dmS "Redis_AIL"
2016-01-19 10:41:03 +00:00
sleep 0.1
echo -e $GREEN"\t* Launching Redis servers"$DEFAULT
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
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
screen -S "Redis_AIL" -X screen -t "6381" bash -c 'redis-server '$conf_dir'6381.conf ; read x'