apkbuilds @ e73a50263de75a541e481c3f5949ed0f8eaa403a

 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}