tor_multipath_voip/scripts/container/lightning-server

26 lines
1 KiB
Text
Raw Normal View History

2019-10-16 15:17:41 +00:00
#!/bin/bash
mkdir -p $6/{log,shared}
cd $6/shared
2020-01-23 16:08:04 +00:00
echo -e 'authenticate ""\nsetevents extended circ circ_minor stream orconn addrmap status_general status_client guard info notice warn err newdesc descchanged ns status_server stream_bw clients_seen hs_desc network_liveness' | \
2020-01-23 09:59:53 +00:00
nc --no-shutdown 127.0.0.1 9051 | \
ts \
2020-01-23 10:34:18 +00:00
> ../log/server-tor-events-stdout.log 2> ../log/server-tor-events-stderr.log &
2020-01-23 09:59:53 +00:00
2020-01-23 17:39:47 +00:00
strace -e trace=network,epoll_wait,epoll_create,epoll_create1,epoll_ctl,epoll_pwait -p 1 \
2020-01-23 17:18:58 +00:00
> ../log/server-strace-tor-stdout.log 2> ../log/server-strace-tor-stderr.log &
2019-10-16 15:17:41 +00:00
donar \
-a lightning \
-s \
2019-10-16 15:35:09 +00:00
-l $4 \
-p $5 \
2019-10-16 15:17:41 +00:00
-b \
-e 9000 \
> ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
2020-01-23 17:39:47 +00:00
strace -e trace=network,epoll_wait,epoll_create,epoll_create1,epoll_ctl,epoll_pwait -p `pidof donar` \
2020-01-23 17:18:58 +00:00
> ../log/server-strace-donar-stdout.log 2> ../log/server-strace-donar-stderr.log &
2019-10-16 15:35:09 +00:00
measlat -h 127.0.0.1 -p 9000 -l -c $1 -i $2 -s $3 > ../log/server-measlat-stdout.log 2> ../log/server-measlat-stderr.log