new: [launcher] scripts that launch all components in screens -t

pull/3/head
Jean-Louis Huynen 2019-05-27 13:20:38 +02:00
parent 771718b7f7
commit 52982891b9
No known key found for this signature in database
GPG Key ID: 64799157F4BD6B93
1 changed files with 19 additions and 0 deletions

19
launch_server.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -e "${DIR}/PDNSENV/bin/python" ]; then
ENV_PY="${DIR}/PDNSENV/bin/python"
else
echo "Please make sure you ran install_server.py first."
exit 1
fi
screen -dmS "pdns"
sleep 0.1
screen -S "pdns" -X screen -t "pdns-lookup-redis" bash -c "(/home/d4/analyzer-d4-passivedns/redis/src/redis-server /home/d4/analyzer-d4-passivedns/etc/redis.conf; read x;)"
screen -S "pdns" -X screen -t "pdns-ingester" bash -c ${ENV_PY}' ./bin/pdns-ingestion.py;'
screen -S "pdns" -X screen -t "pdns-cof" bash -c ${ENV_PY}' ./bin/pdns-cof-server.py;'
exit 0