aboutsummaryrefslogtreecommitdiff
path: root/apks/alps/alps.initd
diff options
context:
space:
mode:
Diffstat (limited to 'apks/alps/alps.initd')
-rw-r--r--apks/alps/alps.initd23
1 files changed, 23 insertions, 0 deletions
diff --git a/apks/alps/alps.initd b/apks/alps/alps.initd
new file mode 100644
index 0000000..307c6e3
--- /dev/null
+++ b/apks/alps/alps.initd
@@ -0,0 +1,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
+}