Re: Priority and 'NICE' command
- From: Steve <steve@xxxxxxxxxxxxx>
- Date: Fri, 28 Mar 2008 19:04:01 +0000
ynotssor wrote:
In news:fsj6b0$j84$1$8300dec7@xxxxxxxxxxxxxxxx,
Steve <steve@xxxxxxxxxxxxx> typed:
I tried to use 'nice' with that like :
nice -10 /sbin/service app1 start
Seems to accept the command, but I am not sure that the app1
application, will have a high priority, on all other applications...
Nope. That will only prioritize /sbin/service. To accomplish what you want
you're going to have to edit the /etc/init.d/app1 script and "nice" the
invocation of the application within the "start ()" function (if that's how
the script is structured) before running the script.
There is effectively, a Start() and then the content of the function
Not sure really how to do so.
I can see the line :
daemon $DAEMON $ASTARGS
I tried to write : nice -10 daemon $DAEMON $ASTARGS
-> answer : Starting asterisk: nice: daemon: No such file or directory
.
- Follow-Ups:
- Re: Priority and 'NICE' command
- From: ynotssor
- Re: Priority and 'NICE' command
- References:
- Priority and 'NICE' command
- From: Steve
- Re: Priority and 'NICE' command
- From: ynotssor
- Priority and 'NICE' command
- Prev by Date: Re: Priority and 'NICE' command
- Next by Date: Re: Where to download rpm of new version of top?
- Previous by thread: Re: Priority and 'NICE' command
- Next by thread: Re: Priority and 'NICE' command
- Index(es):