Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
91691297
Commit
91691297
authored
Sep 04, 2018
by
rna
Browse files
Print processes and kill.
parent
c24b3818
Pipeline
#2978
passed with stages
in 3 minutes and 39 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docker/Dockerfile
View file @
91691297
...
...
@@ -7,6 +7,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN
apt-get update
&&
apt-get
install
--yes
--force-yes
\
bc
\
cmake
\
psmisc
\
traceroute
\
tshark
...
...
docker/Dockerfile_tcp
View file @
91691297
...
...
@@ -7,6 +7,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install --yes --force-yes \
bc \
cmake \
psmisc \
traceroute \
tshark
...
...
docker/entrypoint.sh
View file @
91691297
...
...
@@ -73,7 +73,7 @@ start=$(date +%s.%N);
echo
"Running PRRT with command:
\"
$command
$PRRT_PARAMS
\"
and link parameters:
\"
$NETEM_PARAMS
\"
"
#tc qdisc add dev $dev root netem $NETEM_PARAMS
trap
'echo "Caught SIGINT."; killall -SIGINT $command'
INT
trap
'echo "Caught SIGINT.";
echo "$(ps -a)";
killall -SIGINT $command'
INT
LOG
=
$(
/prrt/
$command
$PRRT_PARAMS
2>&1
)
printf
"
$LOG
\n
"
echo
"Exit status:
$?
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment