From owner-freebsd-questions Mon Jun 19 21:52:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id A7CC737B85F for ; Mon, 19 Jun 2000 21:52:07 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id XAA24905; Mon, 19 Jun 2000 23:52:05 -0500 (CDT) (envelope-from dan) Date: Mon, 19 Jun 2000 23:52:04 -0500 From: Dan Nelson To: Francis Abella Cc: freebsd-questions@FreeBSD.ORG Subject: Re: why is it deleting files on start-up? Message-ID: <20000619235204.A24422@dan.emsphone.com> References: <022201bfda65$7eb1d940$2ec40618@wlgrv1.pa.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.4i In-Reply-To: <022201bfda65$7eb1d940$2ec40618@wlgrv1.pa.home.com>; from "Francis Abella" on Mon Jun 19 23:13:23 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jun 19), Francis Abella said: > I've just installed a program that creates a cache file in /var/run/ > > Everytime I reboot, the cache file has been deleted and the program > is hosed. > > Can anyone tell me where I should check to see what is deleting this > file? I've checked the crontab for every user I can think of > (root,toor,bin,qmail, etc...) /etc/rc cleans /var/run on bootup, since according to the hier(7) manpage: var/run/ system information files describing various info about system since it was booted i.e. it's supposed to be cleaned on every boot. Your cache files should go in /var/db, or some other directory. If you want them to persist between reboots, get them out of /var/run. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message