<quote who="James Gray"> > On Fri, 18 Mar 2005 08:29 am, Voytek wrote: >> how can I put a simple script to log date/time of any reboots ? > > Add a K??log_reboot script to /etc/rc6.d (or find where the rc?.d > directories > are on your system). > > Run level 6 is "reboot". Run level 0 is "shutdown/halt". You may want to > add > a K??log_shutdown to /etc/rc0.d too. > > In these scripts, just have a simple message that is sent to the system > log: > > #!/bin/bash > /usr/bin/logger "Rebooting system at $(/bin/date)" > # end script
James, would these scripts still execute for 'unknow reason self-reboot' ? at this time, it seems I have some problem causing the machine to 'self reboot' -- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
