Append all logs to /var/log

Posted by iCy on Stack Overflow See other posts from Stack Overflow or by iCy
Published on 2010-03-15T10:46:46Z Indexed on 2010/03/15 10:49 UTC
Read the original article Hit count: 188

Filed under:
|
|

Application scenario:

I have the (normal/permanent) /var/log mounted on an encrypted partition (/dev/LVG/log). /dev/LVG/log is not accessible at boot time, it needs to be manually activated later by su from ssh.

A RAM drive (using tmpfs) is mounted to /var/log at init time (in rc.local).

Once /dev/LVG/log is activated, I need a good way of appending everything in the tmpfs to /dev/LVG/log, before mounting it as /var/log.

Any recommendations on what would be a good way of doing so? Thanks in advance!

© Stack Overflow or respective owner

Related posts about linux

Related posts about append