Running github action runner run.sh as services in ubuntu

# create file runner-services.sh
#!/bin/bash

# Your script commands her
/home/username/actions-runner/run.sh

# create file service at /etc/systemd/services/action-runner.service

[Unit]
Description=action-runner

[Service]
ExecStart=/home/username/actions-runner/runner-services.sh
Restart=on-failure
User=username -> adjust with your username
Group=username -> adjust with your username

[Install]
WantedBy=multi-user.target

Related: One Markdown File Made My AI Agent 23 Points Smarter.

Related: How I Built a $0/Month Blog Stack From My Home Lab.


Discover more from Susiloharjo

Subscribe to get the latest posts sent to your email.

Discover more from Susiloharjo

Subscribe now to keep reading and get access to the full archive.

Continue reading