Can anyone tell me how to prevent a particular file from being removed from the /usr/tmp directory during reboots. If this is not possible, how can I stop the entire directory being deleted?
Eveeything that happens at boot is controlled through scripts run by init. The script you are looking for would probably be found in /etc/rc2.d.
I'd find it by
cd /etc/rc2.d
grep -l "rm " *
You could modify it to do whatever you need. One easy approach might be to copy the file you want to save somewhere else temporarily, and then copy it back after the rm takes place.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.