Re: [Vserver] Problem with nice inside a vserver

From: Russell Kliese <russell_at_eminence.com.au>
Date: Sun 12 Mar 2006 - 02:26:43 GMT
Message-ID: <48479.150.101.189.79.1142130403.squirrel@webmail.kliese.wattle.id.au>

>> $NICE is set to 10 in /etc/updatedb.conf, so -n ${NICE:-10} is the same
>> as
>> -n 0.
>>
> In a shell script? Doesn't ":-" set a default value if the variable is
> not already set?

Yes, my mistake. With $NICE being 10, the priority in this cause would be
incremented by 10 (i.e. lowered).

Anyway, this is an aside. Even when running nice without the -n option
still causes problems.

>> >> >> >> >>Would enabling CAP_SYS_NICE help in this case even though a
>> >> lower
>> >> >> >> >>priority is being set? Or is there something else causing
>> this
>> >> >> >> problem?

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sun Mar 12 02:27:05 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sun 12 Mar 2006 - 02:27:08 GMT by hypermail 2.1.8