[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nice levels

From: Chip Seraphine
Subject: Re: Nice levels
Date: Tue, 29 Jun 2004 09:31:16 -0500
User-agent: KMail/1.5.4

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 

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 <address@hidden> [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
> address@hidden


Chip Seraphine
Unix Administrator
TradeLink, LLC

reply via email to

[Prev in Thread] Current Thread [Next in Thread]