Hey.
I am running some maintanance scripts on my Turris Omnia Router (Turris OS 5.2.0) which use their own log file I created in /var/log/custom/script.log
After reboot they disappear and I`ve to add them again manually.
Whats going on? What will I have to do to make them persistant?
Greetz,
Magnus.
Pepe
2
Hello,
This is because /var
is actually mapped to /tmp
, which is stored in RAM, and because of that, it is erased once you do reboot or power off.
You can verify this by using, for example, ls -la in the root dictionary to find this:
lrwxrwxrwx 1 root root 3 Apr 13 04:53 var -> tmp/
Thanks man!
I created my log file on /srv (SSD) and set a symlink via cron on reboot. Works fine.
system
Closed
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.