aboutsummaryrefslogtreecommitdiff
path: root/apks/cerrado/cerrado.initd
blob: 55086e10ac7a1d94a8b915e8516be29d53b1582f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/openrc-run

command="/usr/bin/cerrado"
command_args="-config $config"
: ${command_user:="cerrado:cerrado"}
command_background=yes
directory="/var/lib/cerrado"
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
}