Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 May 2010 11:14:06 -0400
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        Paul Hoffman <phoffman@proper.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: newsyslog not reading /ect/rc.conf arguments?
Message-ID:  <4BE18B3E.9080006@FreeBSD.org>
In-Reply-To: <p0624085bc80737ee60c3@[10.20.30.158]>
References:  <p0624085bc80737ee60c3@[10.20.30.158]>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Hoffman wrote:
> Greetings again. Running FreeBSD 8.0, I have added the following to /etc/rc.conf:
>   newsyslog_flags="-a /usr/old-log/"
> I have stopped and started newsyslog. However, the rotated logs are still being written into /var/log. No errors appear in /var/log/messages or in dmesg.
> 
> Any clues?
> 
> --Paul Hoffman

Hi Paul,

newsyslog is invoked at boot time by the /etc/rc.d/newsyslog script to
create missing log files, but after that, it's invoked regularly by cron
to do the actual rotations.  Check the /etc/crontab file and add your
flags there, and you should be all set.

Hope that helps,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/           - The Power To Serve
http://www.sourcehosting.net/     - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFL4Ys+0sRouByUApARAoYwAJ9VjG0SH6fOmlil+kvJtadlg+VX3QCgl7aq
7be/1LJn4coaeF12O9G49Vc=
=0zhA
-----END PGP SIGNATURE-----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BE18B3E.9080006>