14 lines
302 B
Django/Jinja

[Unit]
Description=Gitea Actions runner
After=docker.service
[Service]
ExecStart={{ gitea_runner_install_path }} daemon --config {{ gitea_runner_config_path }}
WorkingDirectory={{ gitea_runner_data_dir }}
Restart=always
RestartSec=10
User={{ gitea_runner_user }}
[Install]
WantedBy=multi-user.target