aboutsummaryrefslogtreecommitdiff
path: root/apks/alps/alps.initd
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-01-24 22:08:57 +0100
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-01-24 22:08:57 +0100
commite481d980ad7c9f9e6985e9178ea709dbeab8a805 (patch)
tree1e97ec9298c864ae9c5989bf0efffd5af8048fd9 /apks/alps/alps.initd
parent1b1036f1353d2625bdebe1aacc327210dea401a4 (diff)
downloadapkbuilds-e481d980ad7c9f9e6985e9178ea709dbeab8a805.tar.gz
apkbuilds-e481d980ad7c9f9e6985e9178ea709dbeab8a805.tar.bz2
apkbuilds-e481d980ad7c9f9e6985e9178ea709dbeab8a805.zip
chore: Remove jellyfin and add alps
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
+}