* Anand Buddhdev <[EMAIL PROTECTED]> [20031002 15:31]: wrote: > Odhiambo Washington writes: > > >For the first time, clamd (cvs) died and did not wake up, even though I use > >daemontools. Nothing in the log, no core dump.. nothing. > > > >For experts with daemontools, is there a way to capture other data > >outputted > >bt clamd other than the ones that go to the logfile? > > I don't know how you've set up your clamav to run with daemontools, but you > can normally setup the run script to redirect stderr to stdout, and then > create a related logging process using multilog to capture the stdout and > stderr of clamd into logfiles. > > Something like this should work with daemontools >= 0.76: > > #!/bin/sh > # run script for clamd > exec 2>&1 > exec /path/to/clamd > > and then create a directory, /service/clamd/log > > which has a run script as follows: > > #!/bin/sh > exec multilog t ./main > > And then all the stdout and stderr of clamd will go to multilog, which will > create a directory called main, and write automatically rotated and > timestamped logfiles in there.
Thanks alot. All I was missing is the redirection in the run script for clamd. Now working fine. -Wash -- Odhiambo Washington <[EMAIL PROTECTED]> "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD." GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-) Any stone in your boot always migrates against the pressure gradient to exactly the point of most pressure. -- Milt Barber ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users