diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-10-17 21:48:23 +0000 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2022-10-17 21:48:23 +0000 |
commit | 79c054a4536b9f21fa8e98513afb2cbcd799f71e (patch) | |
tree | c7ef92b79d49b9fd957903f0e8cf2e7a13acb14d /apks/jellyfin/jellyfin.initd | |
parent | 0204e511bd3a183291c0582d51ee0f0c177754ec (diff) | |
download | apkbuilds-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.initd | 20 |
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" +} |