T
T
Timofey2016-05-12 11:31:37
linux
Timofey, 2016-05-12 11:31:37

There is a linux distribution that is installed on a flash drive, how to get rid of new entries in the /var/log/* files but leave the logs?

linux (bodhi_2_4_0) put in one partition, no swap.
made an entry in fstab
tmpfs /mnt/tmpfs tmpfs noatime,nodiratime,nodev,nosuid,size=100M 0 0
created a folder in /mnt/tmpfs
made #mount /mnt/tmpfs
files are thrown there, disappear after reboot. as intended.
command #lsof +D /var/log/ gave me the processes/services/daemons that need to be reconfigured
rewrote their configuration files to /mnt/tmpfs
but damn it, no log files are created there!
maybe the mount happens too late when the OS boots?
what did you do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lovecraft, 2016-05-12
@timofas

You'd better mount tmpfs on top of /var/log, after all, the LSB standard requires that logs be written there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question