aports/testing/porla/porla.initd
Fabricio Silva 74f2bbc695 testing/porla: new aport
https://porla.org/
A high performance BitTorrent client for servers and seedboxes.
2024-10-22 21:58:13 +00:00

34 lines
630 B
Bash

#!/sbin/openrc-run
# fallback values for /etc/conf.d/porla
: ${command_user:=porla:porla}
: ${directory:=/var/lib/porla}
: ${umask:=0002}
name=porla
description="porla torrent daemon"
command="/usr/bin/porla"
command_background=true
pidfile="/run/$name.pid"
depend() {
need net
use dns logger netmount
after firewall
}
start_pre() {
checkpath -d -o "$command_user" "$directory"
if [ -n "$logdir" ]; then
checkpath -d -o "$command_user" "$logdir"
fi
if [ -n "$output_log" ]; then
checkpath -f -o "$command_user" "$output_log"
fi
if [ -n "$error_log" ]; then
checkpath -f -o "$command_user" "$error_log"
fi
}