reread newsyslog.conf without reboot

akruijff at dds.nl akruijff at dds.nl
Wed Feb 11 21:59:35 PST 2009


Quoting Doug Hardie <bc979 at lafn.org>:
> On Feb 11, 2009, at 20:32, akruijff at dds.nl wrote:
>> Quoting Fbsd1 <fbsd1 at a1poweruser.com>:
>>> How do I get the system to reread /etc/newsyslog.conf file with out
>>> rebooting the system?
>>
>> This is usually done by sending a HUP signal with 'kill' to the   
>> newsyslog daemon. If this doesn't do it then you can kill the   
>> daemon and load it again with the script in /etc/rc.d/
>
> You might want to take a look at /etc/crontab - in particular the entry
> for newsyslog:
>
> # Rotate log files every hour, if necessary.
> 0       *       *       *       *       root    newsyslog
>
> Its not a daemon.  It runs and exits.  It reads the newsyslog.conf file
> each time it runs.

I overlooked this fact.



More information about the freebsd-questions mailing list