apkbuilds @ d98508753be4e01668f5cc365bb9397f89804721

 1#!/sbin/openrc-run
 2
 3name="alps webmail server"
 4
 5command="/usr/bin/alps"
 6command_args="${listen_address:+-addr $listen_address} ${theme:+-theme $theme} $servers"
 7: ${command_user:="alps:alps"}
 8command_background=yes
 9directory="/var/lib/alps"
10pidfile="/run/alps.pid"
11
12output_log="/var/log/alps.log"
13error_log="/var/log/alps.log"
14
15depend() {
16	need net
17	after firewall
18}
19
20start_pre() {
21	checkpath -d -m 755 -o "$command_user" /var/lib/alps
22	checkpath -f -m 644 -o "$command_user" /var/log/alps.log
23}