Skip to content

self-hosted runner installed on Linux, doesn't pick job once ssh session terminates #57817

Discussion options

You must be logged in to vote

I searched for a while and found this hope it helps:

By default, when you disconnect from an SSH session, any processes started within that session may be terminated. To ensure that your self-hosted runner continues to run even after you disconnect from the SSH session, you can use a tool like nohup or tmux.

Here's a step-by-step guide on how to use nohup to keep the runner process running:

  1. SSH into your Linux VM.
  2. Navigate to the directory where your runner is installed.
  3. Instead of running ./run.sh directly, use the nohup command to start the process:

nohup ./run.sh &

The nohup command allows the process to continue running even after the SSH session is terminated. The & at the end runs…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nanwp
Comment options

Answer selected by manjitsmakkar23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New User Help ❓ New User help
3 participants