File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/zsh
2+ screen -ls | grep Detached | cut -d. -f1 | awk ' {print $1}' | xargs kill
3+
Original file line number Diff line number Diff line change 1+ from config import *
2+
3+ from flask import Flask
4+ from flask .ext .sqlalchemy import SQLAlchemy
5+
6+ from rootio .extensions import db
7+
8+ import zmq
9+ from utils import ZMQ , init_logging
10+
11+ from rootio .telephony .models import *
12+ from rootio .radio .models import *
13+
14+ import time
15+ app = Flask ("ResponseServer" )
16+ app .config ['SQLALCHEMY_DATABASE_URI' ] = SQLALCHEMY_DATABASE_URI
17+ db = SQLAlchemy (app )
18+
19+ logger = init_logging ('launch_stations' )
20+
21+ daemons = []
22+ from station_daemon import StationDaemon
23+ stations = db .session .query (Station ).all ()
24+ for i in stations :
25+ daemons .append (StationDaemon (i .id ))
26+ time .sleep (1 )
27+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ screen -S redis_server -dm sudo /usr/local/Cellar/redis/2.8.13/bin/redis-server /usr/local/etc/redis.conf
3+ echo " launched redis... sleeping for a second..."
4+ sleep 1
5+ screen -S freeswitch -dm /usr/local/freeswitch/freeswitch
6+ echo " launched freeswitch"
7+
8+ cd /usr/local/plivo
9+ screen -S plivo-rest -dm /usr/local/plivo/bin/plivo-rest
10+ screen -S plivo-outbound -dm /usr/local/plivo/bin/plivo-outbound
11+ screen -S plivo-cache -dm /usr/local/plivo/bin/plivo-cache
12+ echo " launced three plivo processes -- rest, outbout, cache"
13+
14+ cd /Users/csik/Documents/code/rootio/rootio_web/scheduler
15+ source vnv/bin/activate
16+ screen -S forwarder.py -dm /Users/csik/Documents/code/rootio/rootio_web/vnv/bin/python forwarder_device.py
17+ echo " Launched forwarder.py"
18+
19+ screen -S run.py -dm /Users/csik/Documents/code/rootio/rootio_web/vnv/bin/python run.py
20+ echo " Launched run.py"
21+
22+ cd /Users/csik/Documents/code/rootio/rootio_telephony
23+ source vnv/bin/activate
24+ screen -S telephony_server.py -dm /Users/csik/Documents/code/rootio/rootio_telephony/vnv/bin/python telephony_server.py
25+ echo " launched telephony server"
26+
27+ screen -S launch_stations.py -dm /Users/csik/Documents/code/rootio/rootio_telephony/vnv/bin/python launch_stations.py
28+ echo " launched stations"
29+
30+ set -x # echo on
31+ screen -ls
32+
You can’t perform that action at this time.
0 commit comments