mirror of
https://github.com/actions/runner.git
synced 2025-12-10 12:36:23 +00:00
22 lines
532 B
Bash
Executable File
22 lines
532 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# convert SIGTERM signal to SIGINT
|
|
# for more info on how to propagate SIGTERM to a child process see: http://veithen.github.io/2014/11/16/sigterm-propagation.html
|
|
trap 'kill -INT $PID' TERM INT
|
|
|
|
if [ -f ".path" ]; then
|
|
# configure
|
|
export PATH=`cat .path`
|
|
echo ".path=${PATH}"
|
|
fi
|
|
|
|
nodever="node20"
|
|
|
|
# insert anything to setup env when running as a service
|
|
# run the host process which keep the listener alive
|
|
./externals/$nodever/bin/node ./bin/RunnerService.js &
|
|
PID=$!
|
|
wait $PID
|
|
trap - TERM INT
|
|
wait $PID
|