I have a log file that I want to rotate each day without keeping old copies. how to achieve that?
thx
I have a log file that I want to rotate each day without keeping old copies. how to achieve that?
thx
with a script in a cronjob or read "man logadm".
hth,
DN2
/var/samba/log.smbd -C 1 -s 5k
I will test it.
this setting created a new log file and renamed the old one with .0 at the end.
However, samba still writes to the old log file. So I restarted samba (/etc/init.d/samba stop and start). After that, the new log file started to grow.
I modified the entry in logadm to the following:
/var/samba/log.nmbd -C 1 -a 'kill -HUP `cat /usr/local/samba/var/locks/smbd.pid`' -s 5k
the old file is indeed created but still samba writes to the old file.
Can you pls advise??
thx.