summaryrefslogtreecommitdiff
path: root/spawner.sh
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-02-15 08:25:51 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-02-15 08:25:51 -0500
commite1246e956b1a41514f9fa4bdf593b0c436d171fe (patch)
treec13b42efb32be8f145c27be8a7152b236872ad50 /spawner.sh
parent43933b5ec30441536b07f09a0a130624728dab77 (diff)
downloaddocker-buildsys-e1246e956b1a41514f9fa4bdf593b0c436d171fe.tar.gz
Timeout messages cannot be seen anyway.HEADstablemaster
* Use SIGTERM instead of SIGKILL -- again
Diffstat (limited to 'spawner.sh')
-rwxr-xr-xspawner.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/spawner.sh b/spawner.sh
index 10553d7..94bee44 100755
--- a/spawner.sh
+++ b/spawner.sh
@@ -1,9 +1,3 @@
#!/bin/bash
limit="${TIMEOUT:-45m}"
-echo "This job will automatically terminate after: ${limit}"
-timeout -sKILL ${limit} $@
-retval=$?
-if [[ ${retval} == 124 ]] || [[ ${retval} == 137 ]]; then
- echo "Job terminated: ${limit} time limit reached"
-fi
-exit ${retval}
+exec timeout -sTERM ${limit} "$@"