olh
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# User and group to run OpenLinkHub as
|
||||
#OPENLINKHUB_USER=openlinkhub
|
||||
#OPENLINKHUB_GROUP=openlinkhub
|
||||
|
||||
# Working directory for runtime data
|
||||
#OPENLINKHUB_DIR=/var/lib/openlinkhub
|
||||
@@ -0,0 +1,29 @@
|
||||
#!/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 $?
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Open source interface for iCUE LINK System Hub, Corsair AIOs and Hubs
|
||||
|
||||
[Service]
|
||||
User=openlinkhub
|
||||
Group=openlinkhub
|
||||
WorkingDirectory=/var/lib/openlinkhub
|
||||
ExecStart=/usr/bin/openlinkhub
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1 @@
|
||||
d /var/lib/openlinkhub 0755 openlinkhub openlinkhub -
|
||||
Reference in New Issue
Block a user