PDA

View Full Version : Persistent log files



inetken
12-09-2009, 08:35 PM
I installed Knoppix 6.2 fine on a 2Gb USB stick and created a persistent image on the free space. I installed clamav and clamtk and everything works fine (in my limited test) from the persistent image except for log files. When I boot and try to update the AV signatures it complains that /var/log/clamav/freshclam.log cannot be appended. /var/log/clamav doesn't exist and if I create the directory and log file it works, until I reboot and then it's gone again. How do I create persistent log files? Is it different from persistent applications?

Thanks,
Ken

inetken
01-06-2010, 08:38 PM
OK, since I didn't get a response I made my own kludge for now.

The persistent image works fine, and I installed ClamAV, but as I indicated freshclam fails due to the log file /var/log/clamav/freshclam.log disappearing after reboot.

So I did the following:
1) Created the path/file: /etc/clamav/log/freshclam.log
2) Change owner and group to clamav (e.g. #chown clamav:clamav freshclam.log)
3) Edited /etc/clamav/freshclam.conf to point to the new log file.

Since /etc is persistent my freshclam.log file is too. It works, but not sure if this is the way to go in the long run.

Ken