-
Notifications
You must be signed in to change notification settings - Fork 3
/
start_torq_betfair_osx.sh
executable file
·60 lines (44 loc) · 3.02 KB
/
start_torq_betfair_osx.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Load the environment
. ./setenv.sh
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$KDBLIB/m32
##### EMAILS #####
# this is where the emails will be sent to
export DEMOEMAILRECEIVER=test@youremail.com
# also set the email server configuration in config/settings/default.q
##### END EMAILS #####
# launch the discovery service
echo 'Starting discovery proc...'
q torq.q -load code/processes/discovery.q -proctype discovery -procname discovery1 -U config/passwords/accesslist.txt -localtime </dev/null >$KDBLOG/torqdiscovery.txt 2>&1 &
# launch the tickerplant, rdb, hdb
echo 'Starting tp...'
q code/processes/tickerplant.q database $KDBHOME/hdb -proctype tickerplant -procname tickerplant1 -U config/passwords/accesslist.txt -localtime </dev/null >$KDBLOG/torqtp.txt 2>&1 &
echo 'Starting rdb...'
q torq.q -load code/processes/rdb.q -proctype rdb -procname rdb1 -U config/passwords/accesslist.txt -localtime -g 1 -T 30 </dev/null >$KDBLOG/torqrdb.txt 2>&1 &
echo 'Starting hdb1...'
q torq.q -load hdb/database -proctype hdb -procname hdb1 -U config/passwords/accesslist.txt -localtime -g 1 -T 60 -w 4000 </dev/null >$KDBLOG/torqhdb1.txt 2>&1 &
echo 'Starting hdb2...'
q torq.q -load hdb/database -proctype hdb -procname hdb2 -U config/passwords/accesslist.txt -localtime -g 1 -T 60 -w 4000 </dev/null >$KDBLOG/torqhdb2.txt 2>&1 &
# launch the gateway
echo 'Starting gw...'
q torq.q -load code/processes/gateway.q -proctype gateway -procname gateway1 -U config/passwords/accesslist.txt -.servers.CONNECTIONS hdb rdb -localtime -g 1 -w 4000 </dev/null >$KDBLOG/torqgw.txt 2>&1 &
# launch the monitor
echo 'Starting monitor...'
q torq.q -load code/processes/monitor.q -proctype monitor -procname monitor1 -localtime </dev/null >$KDBLOG/torqmonitor.txt 2>&1 &
# launch the reporter
echo 'Starting reporter...'
q torq.q -load code/processes/reporter.q -proctype reporter -procname reporter1 -U config/passwords/accesslist.txt -localtime </dev/null >$KDBLOG/torqreporter.txt 2>&1 &
# launch housekeeping
echo 'Starting housekeeping proc...'
q torq.q -load code/processes/housekeeping.q -proctype housekeeping -procname housekeeping1 -U config/passwords/accesslist.txt -localtime </dev/null >$KDBLOG/torqhousekeeping.txt 2>&1 &
# launch sort processes
echo 'Starting sorting proc...'
q torq.q -load code/processes/wdb.q -proctype sort -procname sort1 -U config/passwords/accesslist.txt -localtime -g 1 </dev/null >$KDBLOG/torqsort.txt 2>&1 & # sort process
# launch wdb
echo 'Starting wdb...'
q torq.q -load code/processes/wdb.q -proctype wdb -procname wdb1 -U config/passwords/accesslist.txt -localtime -g 1 </dev/null >$KDBLOG/torqwdb.txt 2>&1 & # pdb process
# launch compress
echo 'Starting compression proc...'
q torq.q -load code/processes/compression.q -proctype compression -procname compression1 -localtime </dev/null >$KDBLOG/torqcompress1.txt 2>&1 & # compression process
# launch compress
echo 'Starting requestor proc...'
q torq.q -load code/processes/requestor.q -proctype requestor -procname requestor1 -localtime 1 </dev/null >$KDBLOG/torqrequestor1.txt 2>&1 &