SwordArMor-gentoo-overlay/net-misc/stayrtr/files/stayrtr-init.d
Alarig Le Lay f357e5fe94
net-misc/stayrtr: caps and init fix
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
2024-12-28 08:51:02 +01:00

22 lines
591 B
D

#!/sbin/openrc-run
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="stayrtr daemon"
description="RPKI-To-Router server implementation in Go"
command=/usr/bin/stayrtr
command_args="${STAYRTR_OPTS}"
pidfile="/run/${RC_SVCNAME}.pid"
command_background=true
start_stop_daemon_args="--user ${RC_SVCNAME} --group ${RC_SVCNAME} \
--stdout /var/log/${RC_SVCNAME}.log \
--stderr /var/log/${RC_SVCNAME}.log"
depend() {
use net
use logger
}
start_pre() {
checkpath -f -m 0755 -o ${RC_SVCNAME}:${RC_SVCNAME} "/var/log/${RC_SVCNAME}.log"
}