Skip to content

Commit

Permalink
Run config remove as user instead of root (actions#1127)
Browse files Browse the repository at this point in the history
* Run config remove as user instead of root

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

* Fix typo
  • Loading branch information
fhammerl authored Jun 4, 2021
1 parent 1193983 commit d4cdb63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions docs/automate.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export RUNNER_CFG_PAT=yourPAT

## 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
- Download and extract latest
Expand All @@ -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
```

### 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

**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
- Acquires a removal token
Expand Down
2 changes: 1 addition & 1 deletion scripts/remove-svc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ if [ "${runner_plat}" == "linux" ]; then
fi
${prefix}./svc.sh stop
${prefix}./svc.sh uninstall
${prefix}./config.sh remove --token $REMOVE_TOKEN
./config.sh remove --token $REMOVE_TOKEN

0 comments on commit d4cdb63

Please sign in to comment.