Page 1 of 1
Moving /var out of /tmp
Posted: Sun Apr 11, 2021 4:20 am
by chapchap70
I would like to run a webserver on my EasyOS and locate my website at /var/www/mysitedirectory but that obviously won't work unless I never reboot. I also don't necessarily want my cups logs to go away on reboot. Would doing this break other stuff related to how this distro was designed; ie containers?
Re: Moving /var out of /tmp
Posted: Mon Apr 12, 2021 8:41 am
by BarryK
I could change /var so that it doesn't use /tmp, so everything in /var will persist across boots.
I think the original reasoning was that there is a lot of stuff that gets created in /var that is junk.
Or, it may be a security risk to persist.
Or, it may get very big.
Anyway, you can use /var/local or /var/lib, they will persist across boots.
Look at them, they are symlinks into /root
So, put your browser at /var/local/www, and everything is fine.