I have succesfully installed amavis perl 11, and it
runs great. Thnaks alot for this peace of code.
The only thing is, i d,like to run amavis in a nicer
mode or better amavis should start the virus scanner
in a nicer mode (i use sophos antivir).
Can i change amavis somewhere so it starts sophos
with: nice -n10 sweep ....
thanks
Logged In: YES
user_id=28904
Yes, there are two ways to do this:
- if your system has the setpriority(2) call, you can add
somewhere in amavis (eg. around the initial call to
umask(0077)
setpriority(0,0,getpriority(0,0)+4);
(or ...+5, whatever you think is right).
This setting should be inherited by sweep.
- alternatively, you can add nice when sweep is called:
$output = `nice $sophos -nb ....`;