[syslog-ng]How do I log reboots?

Jim syslog-ng@lists.balabit.hu
Sun, 3 Apr 2005 23:16:17 -0400 (EDT)


It seems like this might be easier to complete with normal start up 
scripts...like maybe tag this onto the end of rc.local, or some other 
start up script.

echo -n "System startup at:" >> /var/log/reboot
date >> /var/log/reboot


or something like that.

Mike
On Sun, 3 Apr 2005, Niels wrote:

> Hi,
> 
> I have syslog-ng running. I'd like to have a /var/log/reboot file with times
> of reboots of the server. How would I do that?
> 
> 
> Thanks,
> Niels
> 
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
> 
>