2026-06-18 11:45:33 -06:00

30 lines
743 B
Plaintext

#!/sbin/openrc-run
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
: ${OPENLINKHUB_USER:=openlinkhub}
: ${OPENLINKHUB_GROUP:=openlinkhub}
: ${OPENLINKHUB_DIR:=/var/lib/openlinkhub}
name="OpenLinkHub"
description="Open source interface for iCUE LINK Hub and Corsair AIOs"
command="/usr/bin/openlinkhub"
command_user="${OPENLINKHUB_USER}:${OPENLINKHUB_GROUP}"
command_background="true"
pidfile="/run/${RC_SVCNAME}.pid"
directory="${OPENLINKHUB_DIR}"
extra_started_commands="reload"
description_reload="Reload OpenLinkHub configuration"
depend() {
need localmount
use logger
}
reload() {
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}