aboutsummaryrefslogtreecommitdiff
path: root/apks/jellyfin/jellyfin.initd
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-17 21:48:23 +0000
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-10-17 21:48:23 +0000
commit79c054a4536b9f21fa8e98513afb2cbcd799f71e (patch)
treec7ef92b79d49b9fd957903f0e8cf2e7a13acb14d /apks/jellyfin/jellyfin.initd
parent0204e511bd3a183291c0582d51ee0f0c177754ec (diff)
downloadapkbuilds-79c054a4536b9f21fa8e98513afb2cbcd799f71e.tar.gz
apkbuilds-79c054a4536b9f21fa8e98513afb2cbcd799f71e.tar.bz2
apkbuilds-79c054a4536b9f21fa8e98513afb2cbcd799f71e.zip
feat: Add jellyfin
Add jellyfin to avoid importing the whole edge repo.
Diffstat (limited to 'apks/jellyfin/jellyfin.initd')
-rw-r--r--apks/jellyfin/jellyfin.initd20
1 files changed, 20 insertions, 0 deletions
diff --git a/apks/jellyfin/jellyfin.initd b/apks/jellyfin/jellyfin.initd
new file mode 100644
index 0000000..278d79d
--- /dev/null
+++ b/apks/jellyfin/jellyfin.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+
+name=jellyfin
+description="The Free Software Media System"
+
+command=/usr/bin/jellyfin
+command_user=jellyfin:jellyfin
+command_args="--datadir ${datadir} --cachedir ${cachedir} --logdir ${logdir} ${opts}"
+
+depend() {
+ use logger dns
+ need net
+ after firewall
+}
+
+start_pre() {
+ checkpath -d -o $command_user "$datadir"
+ checkpath -d -o $command_user "$cachedir"
+ checkpath -d -o $command_user "$logdir"
+}