aboutsummaryrefslogtreecommitdiff
path: root/apks/jellyfin/jellyfin.initd
diff options
context:
space:
mode:
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"
+}