Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/./../../lang/../../etc/../../test.qr.picotech.app/../../actions-runner/bin/..
الملفات الموجودة في هذا الـ Path:
.
..
.credentials
.credentials_rsaparams
.env
.path
.runner
.service
_diag
_work
actions-runner-linux-x64-2.306.0.tar.gz
bin
bin.2.319.1
bin.2.320.0
config.sh
env.sh
externals
externals.2.319.1
externals.2.320.0
run-helper.cmd.template
run-helper.sh
run-helper.sh.template
run.sh
runsvc.sh
safe_sleep.sh
svc.sh
update.finished

مشاهدة ملف: runsvc.sh

#!/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=${GITHUB_ACTIONS_RUNNER_FORCED_NODE_VERSION:-node16}

# 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