apkbuilds @ 1c0f4d7ddf44ea29464cd18ea8444f95f0eb6ae3

 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}