Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175397 - add support for setting nice value via conf.d/env on a per-ssd/init.d basis
Summary: add support for setting nice value via conf.d/env on a per-ssd/init.d basis
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
: 175648 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-20 23:30 UTC by Mike Mattie
Modified: 2007-05-04 15:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
add nice priority level to ntpd.rc (ntpd-nice.diff,373 bytes, patch)
2007-04-20 23:31 UTC, Mike Mattie
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Mattie 2007-04-20 23:30:34 UTC
ntpd is a critical component, it is nice to be able to set a priority level.
The patch is a single line injection of a start-stop-daemon parameter with
NTPD_NICELEVEL which defaults to 0


Reproducible: Always
Comment 1 Mike Mattie 2007-04-20 23:31:26 UTC
Created attachment 116868 [details, diff]
add nice priority level to ntpd.rc
Comment 2 SpanKY gentoo-dev 2007-04-30 16:52:21 UTC
this isnt ntpd specific at all ... we'd want a generic solution here ...

something like "ssd should utilize RC_SSD_NICE if its set" and then every init.d script using ssd would get automatic support for this
Comment 3 SpanKY gentoo-dev 2007-04-30 18:38:41 UTC
*** Bug 175648 has been marked as a duplicate of this bug. ***
Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-05-02 12:35:28 UTC
in /etc/conf.d/ntpd or /etc/conf.d/sshd
export SSD_NICELEVEL=19

Will set the priority of sshd or ntpd accordingly. This works for any service started by start-stop-daemon in baselayout-2.0.0_alpha2
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-05-04 15:36:06 UTC
Fixed in baselayout-2.0.0_alpha2