[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfengine-help
Subject:    Re: Nice levels
From:       Chip Seraphine <chip () trdlnk ! com>
Date:       2004-06-29 14:31:16
Message-ID: 200406290931.16346.chip () trdlnk ! com
[Download RAW message or body]

Ah.  Close!

The trick seems to be that the nice level is relative to the current priority.  
So if my agent is running at nice level 15 and I want it to restart something 
at regular nice level 0, I need to say "nice --15 startscript" and it is 
zero.

The problem then becomes making sure that I am to causing to run at -15 
instead of 0 when cfagent is run my hand!  I don't want (for instance) my 
sendmail daemon running at a super high priority and starving everyone else.

Anybody know of a good way to tell if you have been invoked by cfexecd?  Back 
when I used cfrun, I just appened a "-D from_cfrun" to the end of the 
command, but I don't know how to do that sort of thing from cfexecd.


On Tuesday 29 June 2004 02:37, Armin Wolfermann wrote:
> * Chip Seraphine <chip@trdlnk.com> [28.06.2004 23:21]:
> > Anybody else had to deal with this?  Any ideas or suggestions?
> 
> Untested, but how about
> 
> 	restart "/usr/bin/nice -15 startscript"
> 
> in your processes command?
> 
> Regards,
> Armin Wolfermann
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
> 

-- 

Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
chip@trdlnk.com



_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic