From a0266b9b4f1b8e1906fd5ff198562be755574089 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 14 Jan 2003 04:42:07 +0000 Subject: support NICELEVEL in the environment (#77846) --- rc.d/init.d/functions | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rc.d/init.d') diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index e13042d0..45691a6e 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -136,6 +136,9 @@ daemon() { # problems with the daemon, it also closes some security problems ulimit -S -c 0 >/dev/null 2>&1 + # if they set NICELEVEL in /etc/sysconfig/foo, honor it + [ -n "$NICELEVEL" ] && nice="nice -n $NICELEVEL" + # Echo daemon [ "${BOOTUP:-}" = "verbose" -a -z "$LSB" ] && echo -n " $base" -- cgit v1.2.1