1827834 Members
1908 Online
109969 Solutions
New Discussion

/tmp file system

 
SOLVED
Go to solution
Manuales
Super Advisor

/tmp file system

where is configured to delete all files located under /tmp when the servers is booted?

thanks.
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: /tmp file system

Shalom,

There is no default configuration that cleans up the /tmp filesystem in HP-UX. You may know that Red Hat Linux distributions do in fact clean up /tmp by default. They do this with a cron job.

You will need to write your own job that cleans up the /tmp filesystem.

You may find stealing a cron job from a Red Hat system is a good shortcut.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: /tmp file system

Hi Manuales:

During startup, '/sbin/init.d/clean_tmps' will optionally delete files in '/tmp' and '/var/tmp'. To enable this action, as opposed to simply listing the directory contents during startup, edit '/etc/rc.config.d/clean_tmps' appropriately.

Regards!

...JRF...