summaryrefslogtreecommitdiff
path: root/www-apps/jellyfin/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-24 01:01:06 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-24 01:01:06 +0000
commitf52562a45d967e193210737b55de5f0ff9018b76 (patch)
tree909caa133f3a538fde8ed9dfd9efa42a2c7a0507 /www-apps/jellyfin/files
parent36fc50e36ed1a4686bb7202aeaff3170b2206124 (diff)
gentoo auto-resync : 24:03:2024 - 01:01:06
Diffstat (limited to 'www-apps/jellyfin/files')
-rw-r--r--www-apps/jellyfin/files/jellyfin.confd15
-rw-r--r--www-apps/jellyfin/files/jellyfin.init-r124
-rw-r--r--www-apps/jellyfin/files/jellyfin.service38
3 files changed, 0 insertions, 77 deletions
diff --git a/www-apps/jellyfin/files/jellyfin.confd b/www-apps/jellyfin/files/jellyfin.confd
deleted file mode 100644
index 310bef364b90..000000000000
--- a/www-apps/jellyfin/files/jellyfin.confd
+++ /dev/null
@@ -1,15 +0,0 @@
-# This is the directory that will hold all Jellyfin data, and is also used as a default base directory for some other paths below.
-#JELLYFIN_DATA_DIR=/var/lib/jellyfin
-
-# This is the directory where the Jellyfin logs will be stored.
-#JELLYFIN_LOG_DIR=/var/log/jellyfin
-
-# This is the directory containing the server cache.
-#JELLYFIN_CACHE_DIR=/var/cache/jellyfin
-
-# This is the directory containing the server configuration files.
-#JELLYFIN_CONFIG_DIR=/etc/jellyfin
-
-# To configure Jellyfin to use a proxy, set http_proxy and/or https_proxy
-# export http_proxy=192.168.33.10:3128
-# export https_proxy=192.168.33.10:3129
diff --git a/www-apps/jellyfin/files/jellyfin.init-r1 b/www-apps/jellyfin/files/jellyfin.init-r1
deleted file mode 100644
index c45a532d5c0c..000000000000
--- a/www-apps/jellyfin/files/jellyfin.init-r1
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/sbin/openrc-run
-
-: ${JELLYFIN_CACHE_DIR:=/var/cache/jellyfin}
-: ${JELLYFIN_LOG_DIR:=/var/log/jellyfin}
-: ${JELLYFIN_DATA_DIR:=/var/lib/jellyfin}
-: ${JELLYFIN_CONFIG_DIR:=/etc/jellyfin}
-
-pidfile="/run/${RC_SVCNAME}.pid"
-command="/opt/jellyfin/jellyfin"
-command_args="--logdir ${JELLYFIN_LOG_DIR} --cachedir ${JELLYFIN_CACHE_DIR} --configdir ${JELLYFIN_CONFIG_DIR} --datadir ${JELLYFIN_DATA_DIR}"
-command_user="${RC_SVCNAME}:${RC_SVCNAME}"
-command_background=true
-
-start_pre() {
- # Ensure that our dirs are correct
- checkpath --directory --owner jellyfin:jellyfin --mode 0775 \
- ${JELLYFIN_LOG_DIR}
- checkpath --directory --owner jellyfin:jellyfin --mode 0775 \
- ${JELLYFIN_CACHE_DIR}
- checkpath --directory --owner jellyfin:jellyfin --mode 0775 \
- ${JELLYFIN_CONFIG_DIR}
- checkpath --directory --owner jellyfin:jellyfin --mode 0775 \
- ${JELLYFIN_DATA_DIR}
-}
diff --git a/www-apps/jellyfin/files/jellyfin.service b/www-apps/jellyfin/files/jellyfin.service
deleted file mode 100644
index f20bfeb3e352..000000000000
--- a/www-apps/jellyfin/files/jellyfin.service
+++ /dev/null
@@ -1,38 +0,0 @@
-[Unit]
-Description = Jellyfin Media Server
-After=syslog.target network.target
-
-[Service]
-User=jellyfin
-Group=jellyfin
-
-Type=simple
-StateDirectory=jellyfin
-CacheDirectory=jellyfin
-LogsDirectory=jellyfin
-ConfigurationDirectory=jellyfin
-ExecStart=/opt/jellyfin/jellyfin --logdir "$LOGS_DIRECTORY" --cachedir "$CACHE_DIRECTORY" --configdir "$CONFIGURATION_DIRECTORY" --datadir "$STATE_DIRECTORY"
-TimeoutStopSec=20
-KillMode=process
-Restart=always
-
-PrivateTmp=yes
-PrivateMounts=yes
-ProtectHome=yes
-ProtectSystem=full
-NoNewPrivileges=yes
-ProtectHostname=yes
-ProtectClock=yes
-ProtectKernelTunables=yes
-ProtectKernelModules=yes
-ProtectKernelLogs=yes
-ProtectControlGroups=yes
-RemoveIPC=true
-RestrictRealtime=yes
-DeviceAllow=char-drm rw
-DeviceAllow=char-nvidia-frontend rw
-DeviceAllow=char-nvidia-uvm rw
-
-[Install]
-WantedBy=multi-user.target
-