#!/sbin/openrc-run # Copyright 2019-2026 Gentoo Authors # Copyright 2026 Evann Dreumont # Distributed under the terms of the GNU General Public License v2 name="alice-lg" description="Alice - Through the Looking Glass" CONF_FILE="${ALICELG_CONF:-/etc/${RC_SVCNAME}.conf}" LOG_FILE="${ALICELG_LOG:-/var/log/${RC_SVCNAME}}" pidfile="/run/${RC_SVCNAME}.pid" command="/usr/bin/${RC_SVCNAME}" command_args="--config=${CONF_FILE}" command_user="${ALICELG_USER:-${RC_SVCNAME}}" command_group="${ALICELG_GROUP:-${RC_SVCNAME}}" command_background=true output_log="${LOG_FILE}" error_log="${LOG_FILE}" retry=15 depend() { need net } start_pre() { checkpath -f -m 0640 -o "${command_user}:${command_group}" "${LOG_FILE}" }