apkbuilds @ 8655046d5cc5fa9fa2a6f0cf6417d89f78603ab8

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