This one time, at band camp, David Baron said:
> On Tuesday 15 May 2007, Stephen Gran wrote:
> >
> > [EMAIL PROTECTED]:~$ ps -elF | egrep '(ADDR|clam)'
> > F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN    RSS PSR STIME TTY     
> >     TIME CMD 1 S clamav    2657     1  0  78   0 -  1818 pause   1672   0
> > May09 ?        00:00:00 /usr/bin/freshclam -d --quiet 1 S clamav   13825   
> >  1  0  89   0 - 19769 inet_c 57108   0 May13 ?        00:10:05
> > /usr/sbin/clamd [EMAIL PROTECTED]:~$ sudo renice 10 13825
> > [EMAIL PROTECTED]:~$ ps -elF | egrep '(ADDR|clam)'
> > F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN    RSS PSR STIME TTY     
> >     TIME CMD 1 S clamav    2657     1  0  78   0 -  1818 pause   1672   0
> > May09 ?        00:00:00 /usr/bin/freshclam -d --quiet 1 S clamav   13825   
> >  1  0  89  10 - 19769 inet_c 57108   0 May13 ?        00:10:05
> > /usr/sbin/clamd
> >
> > It seems to work fine here.  Perhaps the system monitor doesn't handle
> > threaded apps in a clever way?
> 
> I was also able to renice and the renice number shows up in top as it shows 
> up 
> in your test. How do I tell if it is "for real"?

What do you mean?  Why do you think ps would lie?

> How would it be best to set it up, in /etc/init.d/clamav-daemon? 
> 
> Ultimately, there should be a parameter in /etc/default/clamav-daemon that is 
> read into /etc/init.d/clamav-daemon.

Currently, no other daemon that I am aware supports being nice'd from
the init script.  The init scripts for clamav are already fairly
baroque, and adding more functionality to them for a fairly corner case
request doesn't seem like the best thing to do, sorry.

Just out of curiosity, why do you need to nice clamd?
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        [EMAIL PROTECTED] |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

Reply via email to