src_prepare-overlay/www-servers/jellyfin-bin/files/jellyfin
Maciej Barć 679674beab
www-servers/jellyfin-bin: fixes; add group dep
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
2020-09-21 03:59:56 +02:00

36 lines
957 B
Plaintext
Executable File

#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Foundation
# Distributed under the terms of the GNU General Public Licence v2
name=jellyfin
cfgfile="/etc/conf.d/${name}"
command="/usr/lib/${name}/bin/${name}"
command_user="${name}"
command_background="yes"
pidfile="/run/${name}.pid"
depend() {
need net
}
start_pre() {
echo "Running with:"
echo " JELLYFIN_ARGS=${JELLYFIN_ARGS}"
echo " JELLYFIN_CACHE_DIR=${JELLYFIN_CACHE_DIR}"
echo " JELLYFIN_CONFIG_DIR=${JELLYFIN_CONFIG_DIR}"
echo " JELLYFIN_DATA_DIR=${JELLYFIN_DATA_DIR}"
echo " JELLYFIN_FFMPEG_OPT=${JELLYFIN_FFMPEG_OPT}"
echo " JELLYFIN_LOG_DIR=${JELLYFIN_LOG_DIR}"
echo " JELLYFIN_NOWEBAPP_OPT=${JELLYFIN_NOWEBAPP_OPT}"
echo " JELLYFIN_RESTART_OPT=${JELLYFIN_RESTART_OPT}"
echo " JELLYFIN_SERVICE_OPT=${JELLYFIN_SERVICE_OPT}"
echo " JELLYFIN_USER=${JELLYFIN_USER}"
echo " JELLYFIN_WEB_OPT=${JELLYFIN_WEB_OPT}"
}