logrotate log file

I have a script running 24/7 collecting network data to a log file. I
would like to kill the <PID> of that script every night and rotate the
log file from “log_file” to “log_file.1”. How do I tell logrotate to
rotate the file every night?

Thanks for any suggestions.


henders254

henders254’s Profile: http://forums.opensuse.org/member.php?userid=3146
View this thread: http://forums.opensuse.org/showthread.php?t=405017

Put a config file in /etc/logrotate.d/ You can look at one of the
existing ones for an example, e.g. apache2. For the syntax of the file,
look at man logrotate.


ken_yap

ken_yap’s Profile: http://forums.opensuse.org/member.php?userid=221
View this thread: http://forums.opensuse.org/showthread.php?t=405017