On Wed, Apr 10, 2002 at 03:25:09PM -0500, Amy Tanner wrote: > Is it normal for files created in /var/run to be deleted upon reboot? > If yes, what is deleting them? > > I'm trying to get cfengine to work with encryption, and according to the > documentation, the key file needs to live in /var/run/cfengine. This > works fine until the box gets rebooted. After a reboot the key file is > no longer there (but the /var/run/cfengine directory is). And I cannot > find a way to specify an alternative location for the cfengine key file. > > Any ideas? > -- > Amy Tanner > amy at real-time.com Running RedHat? If so, /etc/rc.d/rc.sysinit has this: # Clean up /var # I'd use find, but /usr may not be mounted. for afile in /var/lock/* /var/run/*; do if [ -d "$afile" ]; then [ "`basename $afile`" != "news" -a "`basename $afile`" != "sudo" -a "`basename $afile`" != "mon" ] && rm -f $afile/* else rm -f $afile fi done rm -f /var/lib/rpm/__db* It sure looks like the key file will get wasted on reboot. -- Jim Kaufman mailto:jmk at kaufman.eden-prairie.mn.us Linux Consultant, CCNA cell: 612-481-9778 public key 0x6D802619 fax: 952-937-9832 --- Single tasking: Just Say No.