Tiny Core Base > TCB Tips & Tricks

[SOVLED] Saving log files ?

(1/1)

remus:
I have remastered microcore boot cd to include syslog bootcode, however If the system reboots, any helpful information that may have been in /var/log/messages is lost.

What is the best way to keep copies of this file that will survive a reboot ?

All comments and suggestions welcome.

Rich:
Hi remus
You could start syslog in bootlocal instead of using the boot code. This will allow you to specify a persistent directory.
For more info:

--- Code: ---syslogd --help
--- End code ---

remus:
Thanks for input Rich,

I've achieved my goals with the following.

Added to /opt/bootlocal.sh

--- Code: ---sudo syslogd -O /mnt/sda1/messages
sudo klogd
--- End code ---

In case anyone else is interested, syslogd can be stopped with
sudo killall syslogd

I'm wondering if klogd and syslogd save output to the same file in microcore/tinycore ?

curaga:
Yes, busybox klogd passes the kernel messages to syslogd.

remus:
Ahh, ok so klogd passes kernel messages to syslogd which in turn writes to the log file, thanks.

Navigation

[0] Message Index

Go to full version