Professional Web Applications Themes

strange logrotate behaviour - Linux Setup, Configuration & Administration

Hello, I run into strange logrotate behaviour, after adding apache virtual hosts to list of rotated files: /var/log/httpd/access_log /var/log/httpd/*/access_log { daily rotate 7 missingok sharedscripts postrotate /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || tru endscript } /var/log/httpd/access_log is rotated daily, but none of /var/log/httpd/*/access_log are rotated. The cat /var/lib/logrotate.status has lines like "/var/log/httpd/sitename/access_log" 2003-7-15 for each of them. RedHat 7.3 is the OS - the same conf file worked nicely in 7.2 Many thanks for a piece of advice! Alex...

  1. #1

    Default strange logrotate behaviour

    Hello,

    I run into strange logrotate behaviour, after adding apache virtual
    hosts
    to list of rotated files:

    /var/log/httpd/access_log /var/log/httpd/*/access_log {
    daily
    rotate 7
    missingok
    sharedscripts
    postrotate
    /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2>
    /dev/null || tru
    endscript
    }

    /var/log/httpd/access_log is rotated daily, but none of
    /var/log/httpd/*/access_log are rotated.

    The cat /var/lib/logrotate.status has lines like

    "/var/log/httpd/sitename/access_log" 2003-7-15

    for each of them.

    RedHat 7.3 is the OS - the same conf file worked nicely in 7.2

    Many thanks for a piece of advice!

    Alex
    AlexZ Guest

  2. #2

    Default Re: strange logrotate behaviour

    One more thing: can the file size affect this? Not rotated files are
    smaller than 100kb.

    Alex

    [email]finest137[/email] (AlexZ) wrote in message news:<e018a8ed.0307150605.6159355eposting.google. com>...
    > Hello,
    >
    > I run into strange logrotate behaviour, after adding apache virtual
    > hosts
    > to list of rotated files:
    >
    > /var/log/httpd/access_log /var/log/httpd/*/access_log {
    > daily
    > rotate 7
    > missingok
    > sharedscripts
    > postrotate
    > /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2>
    > /dev/null || tru
    > endscript
    > }
    >
    > /var/log/httpd/access_log is rotated daily, but none of
    > /var/log/httpd/*/access_log are rotated.
    >
    > The cat /var/lib/logrotate.status has lines like
    >
    > "/var/log/httpd/sitename/access_log" 2003-7-15
    >
    > for each of them.
    >
    > RedHat 7.3 is the OS - the same conf file worked nicely in 7.2
    >
    > Many thanks for a piece of advice!
    >
    > Alex
    AlexZ Guest

Similar Threads

  1. strange behaviour with date in SQL
    By Bjorn in forum ASP Database
    Replies: 13
    Last Post: August 3rd, 06:18 PM
  2. strange SQL behaviour
    By platho in forum IBM DB2
    Replies: 1
    Last Post: September 6th, 04:05 PM
  3. Very strange behaviour
    By Mark in forum AIX
    Replies: 0
    Last Post: September 1st, 04:19 PM
  4. Strange CLI behaviour
    By Frank Passek in forum PHP Development
    Replies: 0
    Last Post: August 10th, 07:45 PM
  5. Strange <img> tag behaviour when encapsulated in IF
    By Gianpiero Colagiacomo in forum ASP
    Replies: 10
    Last Post: July 5th, 02:08 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139