[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-date: Fri Apr 23 08:15:52 2004 -->
- <!--x-from-r13: tevssvfo ng oryyfbhgu.arg (PehprU) -->
- <!--x-message-id: [email protected] -->
- <!--x-subject: [ale] SuSE 9.0 Pro - logrotate not rotating logs -->
- <li><em>date</em>: Fri Apr 23 08:15:52 2004</li>
- <li><em>from</em>: griffisb at bellsouth.net (BruceG)</li>
- <li><em>subject</em>: [ale] SuSE 9.0 Pro - logrotate not rotating logs</li>
When I do a whereis, I see it is installed:
bgriffis at CaptainHaddock:~> whereis logrotate
logrotate: /usr/sbin/logrotate /etc/logrotate.d /etc/logrotate.conf /usr/
share/man/man8/logrotate.8.gz
YaST tells me the version is: 3.6.6-91
My scripts are in /etc/logrotate.d
Here is one script I am trying to make sure is run.
bgriffis at CaptainHaddock:/etc/logrotate.d> more linksysmon
/var/log/linksys.log {
missingok
postrotate
/etc/init.d/linksysmon restart > /dev/null || /bin/true
endscript
}
And logrotate.conf is in /etc
bgriffis at CaptainHaddock:/etc> more logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# uncomment these to switch compression to bzip2
#compresscmd /usr/bin/bzip2
#uncompresscmd /usr/bin/bunzip2
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
#/var/log/wtmp {
# monthly
# create 0664 root utmp
# rotate 1
#}
# system-specific logs may be also be configured here.
************************************************************
I don't know where to look next. How do I check if my permissions are correct?
When I look at the files in logrotate.d, where is what it shows:
bgriffis at CaptainHaddock:/etc/logrotate.d> ls -al
total 38
drwxr-xr-x 2 root root 256 2004-04-19 21:59 .
drwxr-xr-x 56 root root 5976 2004-04-21 13:19 ..
-rw-r--r-- 1 root root 139 2003-01-19 20:33 i4l-isdnlog
-rw-r--r-- 1 root root 125 2004-04-18 22:42 linksysmon
-rw-r--r-- 1 root root 439 2003-09-23 19:17 samba
-rw-r--r-- 1 root root 584 2003-09-23 12:52 syslog
-rw-r--r-- 1 root root 221 2003-09-23 14:31 ucdsnmp
-rw-r--r-- 1 root root 134 2003-09-23 13:18 wtmp
-rw-r--r-- 1 root root 140 2003-09-23 15:36 xdm
-rw-r--r-- 1 root root 187 2003-09-23 13:38 xntp
Can anyone point me in the right direction? I'm guessing by looking at
logrotate.conf, that I can set the rotation schedule to daily or weekly. Does
that mean it renames the old log file then creates a new one? That is what I
expect, but it isn't happening.
BruceG
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00992" href="msg00992.html">[ale] SuSE 9.0 Pro - logrotate not rotating logs</a></strong>
<ul><li><em>From:</em> dhurst at kennesaw.edu (Dow Hurst)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00988.html">[ale] Suggestions for 64 bit dual Opteron motherboards</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00990.html">[ale] Suggestions for 64 bit dual Opteron motherboards</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01036.html">[ale] Suggestions for 64 bit dual Opteron motherboards</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00992.html">[ale] SuSE 9.0 Pro - logrotate not rotating logs</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00989"><strong>Date</strong></a></li>
<li><a href="threads.html#00989"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>