aports/testing/otf/otfd.initd
2025-05-28 22:36:31 +00:00

21 lines
382 B
Bash

#!/sbin/openrc-run
name="otf server"
: ${command_user:="otf:otf"}
command="/usr/bin/otfd"
command_args="--secret '$(cat $secret_file)' $command_args"
command_background="yes"
error_log="/var/log/otfd.log"
pidfile="/run/$RC_SVCNAME.pid"
depend() {
need net
after firewall
}
start_pre() {
checkpath -f --owner "$command_user" --mode 0644 \
$error_log
}