newsyslog not reading /ect/rc.conf arguments?
Greg Larkin
glarkin at FreeBSD.org
Wed May 5 15:14:05 UTC 2010
-----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-----
More information about the freebsd-questions
mailing list