aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'usr/share/vdr/systemd/vdr-systemd_helper.sh')
-rw-r--r--usr/share/vdr/systemd/vdr-systemd_helper.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/share/vdr/systemd/vdr-systemd_helper.sh b/usr/share/vdr/systemd/vdr-systemd_helper.sh
index 66919e3..a605585 100644
--- a/usr/share/vdr/systemd/vdr-systemd_helper.sh
+++ b/usr/share/vdr/systemd/vdr-systemd_helper.sh
@@ -17,10 +17,13 @@
cd /var/vdr
unset MAIL
. /usr/share/vdr/inc/functions.sh
+
include rc-functions
include plugin-functions
-init_tmp_dirs
+#init_tmp_dirs
+
VDR_LOG_FILE="${PL_TMP}/vdr-start-log"
+
# this is the environment file to pass user and parameters to the systemd unit file
SYSTEMD_ENV_FILE="${PL_TMP}/systemd_env"
@@ -29,6 +32,8 @@ SYSTEMD_ENV_FILE="${PL_TMP}/systemd_env"
# grep the user on who should vdr systemd running
# 2 values, vdr or root
run_as_user() {
+. /etc/systemd/system/vdr.service.d/00-gentoo-vdr-user.conf
+
if yesno "${START_VDR_AS_ROOT}"; then
systemd_vdr_user="root"
else