Re: reread newsyslog.conf without reboot

2009-02-16 Thread John Nielsen
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

2009-02-14 Thread H.fazaeli


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 h...@sepehrs.com
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

2009-02-13 Thread Proskurin Kirill

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

2009-02-11 Thread Paul Procacci
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


Re: reread newsyslog.conf without reboot

2009-02-11 Thread s.g.
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

2009-02-11 Thread Wojciech Puchar

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

2009-02-11 Thread Wojciech Puchar

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

2009-02-11 Thread s.g.
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

2009-02-11 Thread akruijff

Quoting Fbsd1 fb...@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/


___
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

2009-02-11 Thread akruijff

Quoting Doug Hardie bc...@lafn.org:

On Feb 11, 2009, at 20:32, akrui...@dds.nl wrote:

Quoting Fbsd1 fb...@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   *   *   *   *   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