Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 77846 - achieve initscripts nicelevel other than 0
achieve initscripts nicelevel other than 0
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2002-11-14 07:17 EST by Gavin Robertson
Modified: 2014-03-16 22:32 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-01-13 23:56:59 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Gavin Robertson 2002-11-14 07:17:25 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
I found no documented way for a initscript to run with an adjusted scheduling
priority i.e. nice value other than 0.

to achieve this i did the following.

add line in /etc/sysconfig/example

changed line in /etc/rc.d/init.d/example to read
daemon $NICELEVEL example $OPTIONS

this seems to be a clean solution that sould work on all initscrips. although i
have only looked at a few.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.add line in /etc/sysconfig/example

2.changed line in /etc/rc.d/init.d/example to read 
daemon $NICELEVEL example $OPTIONS


Additional info:
Comment 1 Bill Nottingham 2002-11-14 12:54:48 EST
You can pass +X or -X to set a different nice level. See /etc/init.d/functions.
Comment 2 Gavin Robertson 2002-11-14 15:54:22 EST
have reopened. clearly i did not supplied enough info in my first post and i
think you may have misunderstood. I am passing +X or -X 
I will try to explain better. 

IMHO nicelevel should be a user config option stored in /etc/sysconfig/*. 

as things are now in order to change the nicelevel you need to first understand
/etc/init.d/function and the daemon function (not a bad thing) then hack the
script and place +X or -X at correct place. by doing as my original comment the
OP need only change the NICELEVEL= value in the config file.

I guess it comes down to how easily you want the OP to be able to change the

If i am still missing something please close with my apologies.
Comment 3 Bill Nottingham 2003-01-13 23:56:59 EST
Added in 7.03-1.

Note You need to log in before you can comment on or make changes to this bug.