diff options
author | 2008-02-29 23:46:46 +0000 | |
---|---|---|
committer | 2008-02-29 23:46:46 +0000 | |
commit | 8145727ce8a7969119a912ba5c4da6797b06c470 (patch) | |
tree | d165401f16dc73779e740e9637ec6970eeddfc9c /app-antivirus/clamav/files | |
parent | Version bump (diff) | |
download | gentoo-2-8145727ce8a7969119a912ba5c4da6797b06c470.tar.gz gentoo-2-8145727ce8a7969119a912ba5c4da6797b06c470.tar.bz2 gentoo-2-8145727ce8a7969119a912ba5c4da6797b06c470.zip |
Add support for setting process niceness in conf.d file. Suggestion by Jens Weibler <gentoo-bugzilla at jensthebrain de>, bug #211397.
(Portage version: 2.1.4.4)
Diffstat (limited to 'app-antivirus/clamav/files')
-rw-r--r-- | app-antivirus/clamav/files/clamd.conf | 2 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamd.rc | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/app-antivirus/clamav/files/clamd.conf b/app-antivirus/clamav/files/clamd.conf index e50660bfabbb..ee055138074c 100644 --- a/app-antivirus/clamav/files/clamd.conf +++ b/app-antivirus/clamav/files/clamd.conf @@ -5,3 +5,5 @@ START_CLAMD=yes START_FRESHCLAM=yes +CLAMD_NICELEVEL=3 +FRESHCLAM_NICELEVEL=19 diff --git a/app-antivirus/clamav/files/clamd.rc b/app-antivirus/clamav/files/clamd.rc index 265b909d4c83..149808920ca9 100644 --- a/app-antivirus/clamav/files/clamd.rc +++ b/app-antivirus/clamav/files/clamd.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.rc,v 1.15 2007/04/13 20:56:34 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.rc,v 1.16 2008/02/29 23:46:46 ticho Exp $ opts="logfix" @@ -21,14 +21,15 @@ start() { fi ebegin "Starting clamd" start-stop-daemon --start --quiet \ + --nicelevel ${CLAMD_NICELEVEL:-0} \ --exec /usr/sbin/clamd eend $? "Failed to start clamd" fi if [ "${START_FRESHCLAM}" = "yes" ]; then ebegin "Starting freshclam" - start-stop-daemon --start --quiet \ + --nicelevel ${FRESHCLAM_NICELEVEL:-0} \ --exec /usr/bin/freshclam -- -d retcode=$? if [ ${retcode} = 1 ]; then @@ -86,6 +87,7 @@ start() { ebegin "Starting clamav-milter" start-stop-daemon --start --quiet \ + --nicelevel ${MILTER_NICELEVEL:-0} \ --exec /usr/sbin/clamav-milter -- ${MILTER_OPTS} ${MILTER_SOCKET} eend $? "Failed to start clamav-milter" fi |