From 6305f5d76ee55d3c88f2f0e54bdac12592862e11 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sun, 14 Jan 2024 09:36:57 -0500 Subject: [PATCH] Update docs/dev/hosting.md --- docs/dev/hosting.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docs/dev/hosting.md b/docs/dev/hosting.md index be1c72a..6cd15bd 100644 --- a/docs/dev/hosting.md +++ b/docs/dev/hosting.md @@ -33,4 +33,27 @@ The general sequence of steps required for setting up a CI runner is as follows: - **Others:** `other`, `-v`, `` Where `` is one of `x86` or `x64` for now. ARM runners will be a future project. -7. Run `./act_runner daemon`. \ No newline at end of file +7. Run `./act_runner daemon`. + +### Startup Scripts + +We will obviously want `act_runner` to execute on bootup. Here are the start scripts I used: + +#### Alpine + +In `/etc/init.d/act_runner`: + +```shell +#!/sbin/openrc-run + +directory="/home/runner/act_runner" +command="/home/runner/act_runner/act_runner" +command_args="daemon" +command_user="runner:runner" +command_background="true" +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