aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/functions3
1 files changed, 3 insertions, 0 deletions
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"