diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-02-12 12:24:49 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-02-12 12:24:49 -0500 |
commit | 7e5eec2af519441606c703f3c8ccd0fcfe63c7ff (patch) | |
tree | eefe0aca9146ed1f66e27a98b62d3d9d3c29bd38 /spawner.sh | |
parent | cc49a8c9ca40eaf0dce444c3028f88de89f9578f (diff) | |
download | docker-buildsys-7e5eec2af519441606c703f3c8ccd0fcfe63c7ff.tar.gz |
KILL instead of TERM
Diffstat (limited to 'spawner.sh')
-rwxr-xr-x | spawner.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,9 +1,9 @@ #!/bin/bash limit="${TIMEOUT:-45m}" echo "This job will automatically terminate after: ${limit}" -timeout -sTERM ${limit} $@ +timeout -sKILL ${limit} $@ retval=$? -if [[ ${retval} == 124 ]]; then +if [[ ${retval} == 124 ]] || [[ ${retval} == 137 ]]; then echo "Job terminated: ${limit} time limit reached" fi exit ${retval} |