diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2016-05-01 15:48:52 +0200 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2016-05-01 15:48:52 +0200 |
commit | dd127d6feaf602912b3976a39b731e5939479b35 (patch) | |
tree | d6b0bef448b8d091f9ce75db203014a51e17b764 | |
parent | Bumped to version 2.7.4 (diff) | |
download | gentoo-vdr-scripts-dd127d6feaf602912b3976a39b731e5939479b35.tar.gz gentoo-vdr-scripts-dd127d6feaf602912b3976a39b731e5939479b35.tar.bz2 gentoo-vdr-scripts-dd127d6feaf602912b3976a39b731e5939479b35.zip |
ionice support to vdr initscript, suggested by T.Loescher
-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}" |