How can I start clamav-0.80 under daemontools? The script I was using with 0.75 worked fine but since the upgrade to 0.80, it fires up 2 instances of clamav. The first process seems to be standalone (but started by svc) and the second one, running under daemontools gives the error about the socket file being in use and restarts...and so on:
ps afx:
1254 ? S 0:00 /bin/sh /command/svscanboot
12042 ? S 0:00 | \_ supervise clamd
9506 ? R 0:00 | \_ /opt/clamav/sbin/clamd -c /opt/clamav/etc/clamd.conf (*alternates with defunct state*)
9431 ? S 0:00 /opt/clamav/sbin/clamd -c /opt/clamav/etc/clamd.conf
As I saw, clamd always runs in background, even when not told to do so (started without ending &). If anyone succesfully started clamd 0.80 under daemontools i'd appreciate any hints about it.
Here is my run script:
#!/bin/sh
exec 2>&1
exec /usr/local/bin/softlimit -a 40000000 /opt/clamav/sbin/clamd -c /opt/clamav/etc/clamd.conf
And this is clamd.conf: LogFile /dev/stdout LocalSocket /tmp/clamd FixStaleSocket MaxThreads 20 User qscand ScanOLE2 ScanMail ScanHTML ScanArchive ScanRAR
Thanks, Arthur _______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
