[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Fri Apr 23 09:21:09 2004 -->
- <!--x-from-r13: quhefg ng xraarfnj.rqh (Rbj Vhefg) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] SuSE 9.0 Pro - logrotate not rotating logs -->
- <li><em>date</em>: Fri Apr 23 09:21:09 2004</li>
- <li><em>from</em>: dhurst at kennesaw.edu (Dow Hurst)</li>
- <li><em>in-reply-to</em>: <<a href="msg00989.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00989.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] SuSE 9.0 Pro - logrotate not rotating logs</li>
BruceG wrote:
> Hey all, I'm running SuSE 9.0 Pro and have noticed that my logs aren't doing
> the logrotate shuffle.
>
> 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
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
>
--
__________________________________________________________
Dow Hurst Office: 770-499-3428 *
Systems Support Specialist Fax: 770-423-6744 *
1000 Chastain Rd. Bldg. 12 *
Chemistry Department SC428 Email: dhurst at kennesaw.edu *
Kennesaw State University Dow.Hurst at mindspring.com *
Kennesaw, GA 30144 *
************************************************************
This message (including any attachments) contains *
confidential information intended for a specific individual*
and purpose, and is protected by law. If you are not the *
intended recipient, you should delete this message and are *
hereby notified that any disclosure, copying, distribution *
of this message, or the taking of any action based on it, *
is strictly prohibited. *
************************************************************
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00989" href="msg00989.html">[ale] SuSE 9.0 Pro - logrotate not rotating logs</a></strong>
<ul><li><em>From:</em> griffisb at bellsouth.net (BruceG)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00991.html">[ale] Suggestions for 64 bit dual Opteron motherboards</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00993.html">[ale] Suggestions for 64 bit dual Opteron motherboards</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00989.html">[ale] SuSE 9.0 Pro - logrotate not rotating logs</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00995.html">[ale] Anyone using/have used KMyMoney?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00992"><strong>Date</strong></a></li>
<li><a href="threads.html#00992"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>