Run config remove as user instead of root (#1127)

* Run config remove as user instead of root

* Explain why the runner can't be a service on a container

* Fix typo
This commit is contained in:
Ferenc Hammerl
2021-06-04 17:30:03 +02:00
committed by GitHub
parent 11939832df
commit d4cdb633db
2 changed files with 7 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ export RUNNER_CFG_PAT=yourPAT
## Create running as a service ## Create running as a service
**Scenario**: Run on a machine or VM (not container) which automates: **Scenario**: Run on a machine or VM ([not container](#why-cant-i-use-a-container)) which automates:
- Resolving latest released runner - Resolving latest released runner
- Download and extract latest - Download and extract latest
@@ -26,9 +26,13 @@ Run as a one-liner. NOTE: replace with yourorg/yourrepo (repo level) or just you
curl -s https://raw.githubusercontent.com/actions/runner/main/scripts/create-latest-svc.sh | bash -s yourorg/yourrepo curl -s https://raw.githubusercontent.com/actions/runner/main/scripts/create-latest-svc.sh | bash -s yourorg/yourrepo
``` ```
### Why can't I use a container?
The runner is installed as a service using `systemd` and `systemctl`. Docker does not support `systemd` for service configuration on a container.
## Uninstall running as service ## Uninstall running as service
**Scenario**: Run on a machine or VM (not container) which automates: **Scenario**: Run on a machine or VM ([not container](#why-cant-i-use-a-container)) which automates:
- Stops and uninstalls the systemd (linux) or Launchd (osx) service - Stops and uninstalls the systemd (linux) or Launchd (osx) service
- Acquires a removal token - Acquires a removal token

View File

@@ -73,4 +73,4 @@ if [ "${runner_plat}" == "linux" ]; then
fi fi
${prefix}./svc.sh stop ${prefix}./svc.sh stop
${prefix}./svc.sh uninstall ${prefix}./svc.sh uninstall
${prefix}./config.sh remove --token $REMOVE_TOKEN ./config.sh remove --token $REMOVE_TOKEN