Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent clearing of /usr/tmp on reboot

Status
Not open for further replies.

alayaho

IS-IT--Management
Feb 21, 2002
27
ID
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?

Thanks
 
I forgot to mention that we're using Unixware 7.1.1
 
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.

See also Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top