apkbuilds @ 5badca08ae8f40ed78e30032c0b6a08a349ab96c

 1#!/sbin/openrc-run
 2
 3command="/usr/bin/cerrado"
 4command_args="-config $config"
 5: ${command_user:="cerrado:cerrado"}
 6command_background=yes
 7directory="/var/lib/cerrado"
 8pidfile="/run/cerrado.pid"
 9
10output_log="/var/log/cerrado/access.log"
11error_log="/var/log/cerrado/error.log"
12
13depend() {
14	need net
15	after firewall
16}
17
18start_pre() {
19	checkpath -d -m 755 -o "$command_user" /var/run/cerrado
20	checkpath -d -m 755 -o "$command_user" /var/log/cerrado
21}