Note
You must add a runner to GitHub before you can configure the self-hosted runner application as a service. For more information, see Adding self-hosted runners.
On the runner machine, open a shell in the directory where you installed the self-hosted runner application. Use the commands below to install and manage the self-hosted runner service.
Installing the service
-
Stop the self-hosted runner application if it is currently running.
-
Install the service with the following command:
./svc.sh install
Starting the service
Start the service with the following command:
./svc.sh start
Checking the status of the service
Check the status of the service with the following command:
./svc.sh status
For more information on viewing the status of your self-hosted runner, see Monitoring and troubleshooting self-hosted runners.
Stopping the service
Stop the service with the following command:
./svc.sh stop
Uninstalling the service
-
Stop the service if it is currently running.
-
Uninstall the service with the following command:
./svc.sh uninstall
Customizing the self-hosted runner service
If you don't want to use the above default launchd service configuration, you can create a customized service or use whichever service mechanism you prefer. Consider using the plist
template at actions-runner/bin/actions.runner.plist.template
as a reference. If you use a customized service, the self-hosted runner service must always be invoked using the runsvc.sh
entry point.