This should work much better for the CFS
{
local pidfile=""
local forcestart=""
{
local pidfile=""
local forcestart=""
# This will ensure compatibility with previous LFS Bootscripts
if [ -n "${PIDFILE}" ]; then
# This will ensure compatibility with previous LFS Bootscripts
if [ -n "${PIDFILE}" ]; then
- 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
}
evaluate_retval # This is "Probably" not LSB compliant, but required to be compatible with older bootscripts
return 0
}