#!/sbin/openrc-run # fallback values for /etc/conf.d/autobrr : ${command_user:=autobrr:autobrr} : ${directory:=/var/lib/autobrr} : ${logdir:=/var/log/autobrr} name=autobrr description="autobrr daemon" command="/usr/bin/autobrr" command_args="--config=$directory" command_background=true pidfile="/run/$name.pid" output_log="$logdir/output.log" error_log="$logdir/error.log" depend() { need net use dns logger } start_pre() { checkpath -d -o "$command_user" "$directory" "$logdir" checkpath -f -o "$command_user" "$output_log" "$error_log" }