I have a symlink /var linking to /tmpfs/var.1
/var -> /tmpfs/var.1
I start a script called cache_tmpfs from /etc/rc.local on startup. This script will copy /var.backup/* contents to /tmpfs/var.1/
cp -dpRxf /var.backup/* /tmpfs/var.1/
Now the problem is that kernel is opening messages log file in /var/log/messages,
is it possible to remove the current /var symlink and recreate a new one (that will symlink to /var.backup instead of /tmpfs/var.1) without issues as files once opened by system become hard links??
rm /var && ln -s /var.backup /var