> -----Original Message----- > From: Jeff Bilder [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 06, 2004 9:42 PM > To: [EMAIL PROTECTED] > Subject: [Clamav-users] Supervised Clamd > > > > Has anyone gotten Clamd to run with daemontools? I have a > clamd running supervised, but the log file will not supervise > correctly. I have /service/clamd/log with: > > [EMAIL PROTECTED] spamd]# cd /service/clamd/log/ > [EMAIL PROTECTED] log]# ls -l > total 4 > -rwxr-xr-x 1 root qmail 101 Apr 6 14:20 run > drwx------ 2 root qmail 512 Apr 6 14:06 supervise > > but when I run clamdctl stat I get: > > [EMAIL PROTECTED] log]# clamdctl stat > /service/clamd: up (pid 1526) 658 seconds > /service/clamd/log: supervise not running
Works fine for me. I have the /service/clamd directory, the /service/clamd/log directory and the /service/clamd.log.supervise directories all sgid. And in the run scripts I used 'setuidgid qscand' (the user that runs clamd). Like so: [EMAIL PROTECTED] log]# pwd /service/clamd/log [EMAIL PROTECTED] log]# ls -al total 16 drwxr-sr-x 3 root root 4096 Jan 11 16:38 . drwxr-sr-x 4 root root 4096 Jan 11 16:38 .. -rwxr-xr-x 1 root root 104 Jan 11 16:30 run drwx--S--- 2 root root 4096 Apr 4 14:08 supervise [EMAIL PROTECTED] log]# cat run #!/bin/sh exec /usr/local/bin/setuidgid qscand /usr/local/bin/multilog t s1000000 n20 /var/log/clamav HTH, --Micha > > Any ideas? Thanks! > > - Jeff > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President > and CEO of GenToo technologies. Learn everything from > fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click > _______________________________________________ > Clamav-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/clamav-users > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users