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