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.

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.