To install and manage a self-hosted runner service on Linux machine, generally you can follow the steps below:
Open a shell in the installation directory of the self-hosted runner.
Execute the following command to install the service.
sudo ./svc.sh install
Execute the following command to start the service.
sudo ./svc.sh start
You can use the following command to check status of the service.
sudo ./svc.sh status
Normally, after above steps:
- the runner will keep connecting to GitHub as long as the machine is online.
- every time the machine is started and online, the runner will automatically connect to GitHub.
To view more details, you can see “Configuring the self-hosted runner application as a service”.