From: Michael Tremer Date: Wed, 30 Jun 2010 18:37:43 +0000 (+0200) Subject: Default all processes to run with nice=0. X-Git-Tag: v2.9-beta1~150^2~9 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=b64d57aac841cb0a569e9651cba629965d1e6783 Default all processes to run with nice=0. This should work much better for the CFS --- diff --git a/src/initscripts/init.d/functions b/src/initscripts/init.d/functions index ea840d1a56..00cd6fa2a1 100644 --- a/src/initscripts/init.d/functions +++ b/src/initscripts/init.d/functions @@ -438,7 +438,7 @@ loadproc() { local pidfile="" local forcestart="" - local nicelevel="10" + local nicelevel="" # This will ensure compatibility with previous LFS Bootscripts if [ -n "${PIDFILE}" ]; then @@ -500,7 +500,13 @@ loadproc() esac fi - nice -n "${nicelevel}" "${@}" + local cmd="${@}" + + if [ -n "${nicelevel}" ]; then + cmd="nice -n "${nicelevel}" ${cmd}" + fi + + ${cmd} evaluate_retval # This is "Probably" not LSB compliant, but required to be compatible with older bootscripts return 0 }