Re: reread newsyslog.conf without reboot
On Friday 13 February 2009 05:44:55 am Proskurin Kirill wrote: > Fbsd1 wrote: > > How do I get the system to reread /etc/newsyslog.conf file with out > > rebooting the system? > > /etc/rc.d/newsyslog restart Since newsyslog is run from cron (and doesn't stay active as a daemon) no action is strictly necessary. However running the script above will save you the trouble of creating empty logfiles if needed. JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: reread newsyslog.conf without reboot
newsyslog.conf is read by newsyslog(8) and newsyslog is executed by cron(8) as specified in /etc/crontab, usually every hour. so you changes will take effect the next time cron runs newsyslog. Fbsd1 wrote: How do I get the system to reread /etc/newsyslog.conf file with out rebooting the system? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" -- Best regards. Hooman Fazaeli Sepehr S. T. Co. Ltd. Web: http://www.sepehrs.com Tel: (9821)88975701-2 Fax: (9821)88983352 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: reread newsyslog.conf without reboot
Fbsd1 wrote: How do I get the system to reread /etc/newsyslog.conf file with out rebooting the system? /etc/rc.d/newsyslog restart -- Best regards, Proskurin Kirill ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: reread newsyslog.conf without reboot
Quoting Doug Hardie : On Feb 11, 2009, at 20:32, akrui...@dds.nl wrote: Quoting Fbsd1 : 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 * * * * rootnewsyslog Its not a daemon. It runs and exits. It reads the newsyslog.conf file each time it runs. I overlooked this fact. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: reread newsyslog.conf without reboot
Quoting Fbsd1 : 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/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: reread newsyslog.conf without reboot
Wojciech Puchar wrote: >>> How do I get the system to reread /etc/newsyslog.conf file with out >>> rebooting the system? >> >> /etc/rc.d/newsyslog restart > no it's not needed > > /etc/rc.d/newsyslog just runs it at start Right, it won't do. Really sorry about that, guys. s.g. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: reread newsyslog.conf without reboot
How do I get the system to reread /etc/newsyslog.conf file with out rebooting the system? /etc/rc.d/newsyslog restart no it's not needed /etc/rc.d/newsyslog just runs it at start ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: reread newsyslog.conf without reboot
you don't have to. it's reread by newsyslog which is usually run by cron On Sat, 14 Mar 2009, Fbsd1 wrote: How do I get the system to reread /etc/newsyslog.conf file with out rebooting the system? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: reread newsyslog.conf without reboot
Fbsd1 wrote: > How do I get the system to reread /etc/newsyslog.conf file with out > rebooting the system? /etc/rc.d/newsyslog restart s.g. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: reread newsyslog.conf without reboot
newsyslog is spawn'd via cron every hour. It isn't daemonized and doesn't require any signals to be sent to any process. /etc/crontab ~Paul Fbsd1 wrote: How do I get the system to reread /etc/newsyslog.conf file with out rebooting the system? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"