#!/usr/bin/openrc-run

name=$RC_SVCNAME
description="Gitea Runner"
supervisor="supervise-daemon"
command="/usr/bin/gitea-runner"
command_args="-c ${RUNNER_CONFIG:-/etc/gitea-runner/config.yaml} daemon"
supervise_daemon_args=" -d ${RUNNER_DIR:-/etc/gitea-runner}/"

depend() {
    after gitea
}
