aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-01-14 04:42:07 +0000
committerBill Nottingham <notting@redhat.com>2003-01-14 04:42:07 +0000
commita0266b9b4f1b8e1906fd5ff198562be755574089 (patch)
tree233cb7cdb1aa9ff1805f7ff085a0afddb49b6379
parent7773e202d5c029c6a625cdbac1cba765935bec28 (diff)
downloadinitscripts-a0266b9b4f1b8e1906fd5ff198562be755574089.tar
initscripts-a0266b9b4f1b8e1906fd5ff198562be755574089.tar.gz
initscripts-a0266b9b4f1b8e1906fd5ff198562be755574089.tar.bz2
initscripts-a0266b9b4f1b8e1906fd5ff198562be755574089.tar.xz
initscripts-a0266b9b4f1b8e1906fd5ff198562be755574089.zip
support NICELEVEL in the environment (#77846)
-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"