minazuki-overlay/www-apps/gatus/files/gatus.initd-r0
Shin'ya Minazuki 8f39eb4d6b Add www-apps/gatus
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
2026-05-19 18:39:24 -03:00

17 lines
479 B
Text

#!/sbin/openrc-run
# Copyright 2026 Shin'ya Minazuki
supervisor="supervise-daemon"
command="/usr/bin/${RC_SVCNAME}"
command_args="-config /etc/${RC_SVCNAME}/config.yaml"
command_background="true"
command_user="${RC_SVCNAME}"
pidfile="/run/${RC_SVCNAME}.pid"
start_pre() {
ebegin "Checking for the existence of /etc/${RC_SVCNAME}/config.yaml ..."
if ! checkpath --file /etc/${RC_SVCNAME}/config.yaml; then
eerror "Configuration file not found"
eerror "Bailing out."
fi
}