From fde2b268571a406e31d6e2dcdbe5392bbed30be3 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sun, 14 Jan 2024 09:43:47 -0500 Subject: [PATCH] Update docs/dev/hosting.md --- docs/dev/hosting.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/docs/dev/hosting.md b/docs/dev/hosting.md index 6cd15bd..75d933d 100644 --- a/docs/dev/hosting.md +++ b/docs/dev/hosting.md @@ -56,4 +56,25 @@ pidfile="/run/act_runner.pid" Don't forget to `chmod +x /etc/init.d/act_runner`. -Then just `rc-update add act_runner` and `rc-service act_runner start`. \ No newline at end of file +Then just `rc-update add act_runner` and `rc-service act_runner start`. + +#### Debian + +In `/etc/systemd/system/act_runner.service`: + +``` +[Unit] +Description=Gitea Actions runner + +[Service] +ExecStart=/home/runner/act_runner/act_runner daemon +ExecReload=/bin/kill -s HUP $MAINPID +WorkingDirectory=/home/runner/act_runner +TimeoutSec=0 +RestartSec=10 +Restart=always +User=runner + +[Install] +WantedBy=multi-user.target +``` \ No newline at end of file