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
c24b3818
Commit
c24b3818
authored
Sep 04, 2018
by
rna
Browse files
Add SIGINT handler to entrypoint.
parent
3a5482f7
Pipeline
#2977
passed with stages
in 1 minute and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docker/entrypoint.sh
View file @
c24b3818
...
...
@@ -73,7 +73,8 @@ 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
LOG
=
`
/prrt/
$command
$PRRT_PARAMS
2>&1
`
trap
'echo "Caught SIGINT."; killall -SIGINT $command'
INT
LOG
=
$(
/prrt/
$command
$PRRT_PARAMS
2>&1
)
printf
"
$LOG
\n
"
echo
"Exit status:
$?
"
dur
=
$(
echo
"
$(
date
+%s.%N
)
-
$start
"
| bc
)
;
...
...
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