projects/aports·blob master · refs

21 lines · 382 B

1#!/sbin/openrc-run
2
3name="otf server"
4
5: ${command_user:="otf:otf"}
6
7command="/usr/bin/otfd"
8command_args="--secret '$(cat $secret_file)' $command_args"
9command_background="yes"
10error_log="/var/log/otfd.log"
11pidfile="/run/$RC_SVCNAME.pid"
12
13depend() {
14 need net
15 after firewall
16}
17
18start_pre() {
19 checkpath -f --owner "$command_user" --mode 0644 \
20 $error_log
21}