NewSysLog & FBSD 4.9

Pelle Andersson (SPD Systems AB) pelle at spd.nu
Mon Mar 1 06:28:51 PST 2004


 
Hi and thanks!

It works fine now, find the problem with the newsyslog -v command.
It told me, unknown group 'root'.
Offcorce, Im so stupid. Root-group is
a old habit from Linux =)

Changed from:
> /var/log/qpopper.log	root:root	640	7	*	@T00	Z
> /var/log/proftp.log	root:root	640	7	*	@T00	Z 

To:
> /var/log/qpopper.log	root:wheel	640	7	*	@T00	Z
> /var/log/proftp.log	root:wheel	640	7	*	@T00	Z  

================================
BEST REGARDS/MVH PELLE ANDERSSON
SYSTEM AND NETWORK ENGINEER
SPD SYSTEMS AB
WWW.SPD.NU
================================

-----Ursprungligt meddelande-----
Från: Matthew Seaman [mailto:m.seaman at infracaninophile.co.uk] 
Skickat: den 1 mars 2004 15:16
Till: Pelle Andersson (SPD Systems AB)
Kopia: freebsd-questions at freebsd.org
Ämne: Re: NewSysLog & FBSD 4.9

On Mon, Mar 01, 2004 at 02:35:20PM +0100, Pelle Andersson (SPD Systems AB)
wrote:
> Hi!
> 
> ::NEWSYSLOG::
> -------------
> I want to rotate and pack my logs for Qpopper and ProFTPD This is my 
> lines in '/etc/newsyslog.conf':
> 
> #---------------------------------------------------------------
> /var/log/qpopper.log	root:root	640	7	*	@T00	Z
> /var/log/proftp.log	root:root	640	7	*	@T00	Z 
> #---------------------------------------------------------------
> 
> It does not work =( No error messages or anything.
> What do I need to do?
> Any suggestions?

Hmmm... that looks fine to me.  What happens if you run:

    # newsyslog -v

I assume that newsyslog is actually running every hour -- that's the default
from the system crontab:

    % grep newsyslog /etc/crontab
    0       *       *       *       *       root    newsyslog

and that the other system logs are all being cycled as intended.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK




More information about the freebsd-questions mailing list