Subject: pkg/29472: freshclamd startup scripts overrides conf file
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <joel@carnat.net>
List: pkgsrc-bugs
Date: 02/20/2005 23:10:00
>Number: 29472
>Category: pkg
>Synopsis: freshclamd startup scripts overrides conf file
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 20 23:10:00 +0000 2005
>Originator: ptiJo
>Release: NetBSD 2.0_STABLE
>Organization:
,- This mail runs ------.
`--------- NetBSD/i386 -'
>Environment:
System: NetBSD atheria.tumfatig.net 2.0_STABLE NetBSD 2.0_STABLE (ATHERIA-$Revision: 1.595.2.11 $) #8: Fri Feb 11 17:35:07 CET 2005 ptijo@atheria.tumfatig.net:/usr/src/sys/arch/i386/compile/ATHERIA i386
Architecture: i386
Machine: i386
>Description:
When you want clamav to run as a specific user (and not the default clamav user), you specify the user name in the configuration file (clamd.conf & freshclam.conf). The installed /usr/pkg/share/examples/rc.d/freshclamd uses "freshclamd_user" which overrides (and bypass) the conf file specification.
>How-To-Repeat:
Set "DatabaseOwner vscan" in freshclam.conf and start the process.
freshclam still runs as clamav.
>Fix:
--- /usr/pkg/share/examples/rc.d/freshclamd 2005-02-14 18:08:23.000000000 +0100
+++ /etc/rc.d/freshclamd 2005-02-20 23:50:37.000000000 +0100
@@ -12,5 +12,5 @@
pidfile="/var/run/${name}.pid"
sig_stop="KILL"
-freshclamd_user="clamav"
+#freshclamd_user="clamav"
freshclamd_flags=${freshclamd_flags:=-c 2}
command_args="-d"
there should be a better way to do it :)