Re: Clamd and systemd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arthur Dent pise:
> On Wed, 2012-09-19 at 17:00 -0400, Bill Shirley wrote:
> > 
> > On 9/19/2012 3:36 PM, Arthur Dent wrote:
> > 
> > > On Wed, 2012-09-19 at 10:47 +0100, Arthur Dent wrote:
> 
> > > 
> > > All is not _quite_ perfect however. In calling clamdscan from my script
> > > (itself called from procmail) I get the error:
> > > ERROR: Can't parse clamd configuration file /etc/clamd.conf
> > > 
> > > Note the config file and location. In order to get it to work (which it
> > > does), I need to declare clamdscan in my script as:
> > > "/bin/clamdscan -c/etc/clamd.d/scan.conf"
> > > 
> > > So where does it default to /etc/clamd.conf ? I have grepped the whole
> > > of /etc/* and can't find a reference to this location, and there is
> > > no /etc/sysconfig/clamd as there used to be.
> > > 
> > > I think this is the last remaining mystery. After I have solved this I
> > > will be a very happy bunny!
> 
> > /etc/clamd.conf is the old location for the config file.  With the
> > flexibility of systemd allowing multiple daemons running, I think the
> > packager changed things to use /etc/clam.d/scan.conf but didn't catch
> > this change for clamdscan.
> 
> Yes I know that /etc/clamd.conf is the old location. What I can't work
> out is why it still thinks that's where it is. Is it hard-coded
> somewhere?
> 
> > I also run a Mandriva mail server that uses procmail to deliver mail.
> > Here is a snippet of my IMAP recipe:
> > :0
> > VIRUS=| clamdscan --no-summary --stdout - | cut -d' ' -f2 -
> > 
> [snip] useful recipe (similar to mine). The thing is, for me "clamdscan
> --no-summary --stdout" won't work. I need to tell it explicitly where
> the config file is. I have this in my script:
> CLAMSCAN="/bin/clamdscan -c/etc/clamd.d/scan.conf"
> CLAMSCANOPT="--no-summary --stdout"
> 
> and call it with ${CLAMSCAN} ${CLAMSCANOPT} - < ${MSGTMP}
> 
> The same thing happens on the command line:
> # clamdscan -V
> ERROR: Can't parse clamd configuration file /etc/clamd.conf
> # clamdscan -c /etc/clamd.d/scan.conf -V
> ClamAV 0.97.5/15376/Wed Sep 19 19:35:38 2012
> 
> Any ideas?
	Definitely it is hardcoded:
strings /bin/clamdscan
...
/etc/clamd.conf
...
or
strace -e open,stat -o /tmp/clamscan.strace clamdscan -V
...
open("/etc/clamd.conf", O_RDONLY)       = -1 ENOENT (No such file or directory)
... 

I guess that you can file a bug because the application doesn't work properly.

-- 

--Zdenek Pytela, <pytela@xxxxxxxxxxxx>

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux