Results 1 to 2 of 2

Thread: logrotate log file

  1. #1
    henders254 NNTP User

    Default 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


  2. #2
    ken yap NNTP User

    Default Re: logrotate log file


    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •