Re: Priority and 'NICE' command



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






.