logrotate syslog systemd = doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear All.

Fedora 16 Beta, fully updated.



I checked it: logrotate -v -d /etc/logrotate.d/syslog

Output:
reading config file /etc/logrotate.d/syslog

Handling 1 logs

rotating pattern: /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler 
/var/log/boot.log /var/log/cron  1048576 bytes (no old logs will be kept)
empty log files are rotated, old logs are removed
considering log /var/log/messages
   log needs rotating
considering log /var/log/secure
   log does not need rotating
considering log /var/log/maillog
   log does not need rotating
considering log /var/log/spooler
   log does not need rotating
considering log /var/log/boot.log
   log does not need rotating
considering log /var/log/cron
   log does not need rotating
rotating log /var/log/messages, log->rotateCount is 0
dateext suffix '-20111008'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
renaming /var/log/messages.1 to /var/log/messages.2 (rotatecount 1, logstart 1, i 1),
renaming /var/log/messages.0 to /var/log/messages.1 (rotatecount 1, logstart 1, i 0),
fscreate context set to system_u:object_r:var_log_t:s0
renaming /var/log/messages to /var/log/messages.1
disposeName will be /var/log/messages.1
running postrotate script
running script with arg /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler 
/var/log/boot.log /var/log/cron : "
         /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
"
removing old log /var/log/messages.1
error: error opening /var/log/messages.1: No such file or directory

Nothing happened to "messages" - this file was not renamed.


2.  "ps -ef | grep log"  gives me

root      2672     1  0 14:58 ?        00:00:00 /sbin/rsyslogd -n -c 5

But from man page:

-c version. ...It must always be the first option on the command line....

-n     Avoid auto-backgrounding.  This is needed especially if the rsyslogd is started and 
controlled by init(8)

What does mean "5" at the end?



Actually logrotate doesn't work, although its output looks promising.

Any suggestions.
Thanks.
-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux