diff options
-rw-r--r-- | etc/conf.d/vdr | 9 | ||||
-rw-r--r-- | usr/share/vdr/rcscript/pre-start-30-parameter.sh | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/etc/conf.d/vdr b/etc/conf.d/vdr index 4c63f33..b292df6 100644 --- a/etc/conf.d/vdr +++ b/etc/conf.d/vdr @@ -63,11 +63,18 @@ # Startup Options # ########################################################### -# Set niceness of vdr process +# Modifies the scheduling priority of vdr process # allowed values: -19 .. 20 # default: do not change niceness #VDR_NICENESS="5" +# Modifies the IO scheduling priority of vdr prozess. +# Class can be 0 for none, 1 for real time, 2 for best effort and 3 for idle. +# Data can be from 0 to 7 inclusive. +# values: Class:Data +# default: do not changes ionice +#VDR_IONICE="2:7" + # Set volume at start of vdr to this value # allowed values: 0-255 # default: leave volume unchanged diff --git a/usr/share/vdr/rcscript/pre-start-30-parameter.sh b/usr/share/vdr/rcscript/pre-start-30-parameter.sh index 962048d..1460c31 100644 --- a/usr/share/vdr/rcscript/pre-start-30-parameter.sh +++ b/usr/share/vdr/rcscript/pre-start-30-parameter.sh @@ -5,6 +5,8 @@ addon_main() { # parameters of start-stop-daemon [ -n "${VDR_NICENESS}" ] && add_daemonctrl_param --nicelevel "${VDR_NICENESS}" + [ -n "${VDR_IONICE}" ] && add_daemonctrl_param --ionice "${VDR_OINICE}" + if [ "${VDRVERSNUM}" -ge "20110" ]; then # Set command line option [ -n "${VDR_CHARSET_OVERRIDE}" ] && add_param "--chartab=${VDR_CHARSET_OVERRIDE}" |