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