Skip to content

[Documentations] Act Runner - Add systemd service example for daemon #26205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sgabenov opened this issue Jul 28, 2023 · 2 comments
Closed

[Documentations] Act Runner - Add systemd service example for daemon #26205

sgabenov opened this issue Jul 28, 2023 · 2 comments
Labels
topic/gitea-actions related to the actions of Gitea type/docs This PR mainly updates/creates documentation type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@sgabenov
Copy link

Feature Description

Please, add to documentation part, how to run act runner as a linux service.

I assume this could be something like:

Create service file in /lib/systemd/system/act_runner.service

[Unit]
Description=Gitea act_runner daemon
After=network.target

[Service]
Environment=HOME=/root
WorkingDirectory=/root
Type=simple
ExecStart=/usr/bin/act_runner daemon

[Install]
WantedBy=multi-user.target

Run commands:
systemctl enable act_runner.service ; systemctl start act_runner.service

Screenshots

No response

@sgabenov sgabenov added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jul 28, 2023
@techknowlogick techknowlogick added type/docs This PR mainly updates/creates documentation topic/gitea-actions related to the actions of Gitea labels Jul 28, 2023
@jasonestewart
Copy link

Just make sure that you set WorkingDirectory to the directory that you have put the .runner file

@nodiscc
Copy link
Contributor

nodiscc commented Nov 21, 2023

I think this is already fixed in #27844

https://docs.gitea.com/next/usage/actions/act-runner#systemd-service

@lunny lunny closed this as completed Nov 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/gitea-actions related to the actions of Gitea type/docs This PR mainly updates/creates documentation type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

5 participants