Moving /var out of /tmp

Moderator: BarryK

Post Reply
chapchap70
Posts: 3
Joined: Mon Mar 29, 2021 10:11 pm

Moving /var out of /tmp

Post 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?

User avatar
BarryK
Posts: 2705
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 739 times

Re: Moving /var out of /tmp

Post 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.

Post Reply

Return to “EasyOS”