apkbuilds @ 3a981c0912f4e229e5a11c97230d2f57d1f01c3c

 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}