From owner-freebsd-stable Fri Jan 14 1:51:59 2000 Delivered-To: freebsd-stable@freebsd.org Received: from ady.warpnet.ro (ady.warpnet.ro [194.102.224.1]) by hub.freebsd.org (Postfix) with ESMTP id CD52414D8B; Fri, 14 Jan 2000 01:51:36 -0800 (PST) (envelope-from ady@warpnet.ro) Received: from localhost (ady@localhost) by ady.warpnet.ro (8.9.3/8.9.3) with ESMTP id LAA75735; Fri, 14 Jan 2000 11:55:56 +0200 (EET) (envelope-from ady@warpnet.ro) Date: Fri, 14 Jan 2000 11:55:55 +0200 (EET) From: Adrian Penisoara To: Sheldon Hearn Cc: Trond Endrestol , FreeBSD stable , FreeBSD current Subject: Re: Making sure /var/tmp/vi.recover exists during reboot In-Reply-To: <9039.947589746@axl.noc.iafrica.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, On Tue, 11 Jan 2000, Sheldon Hearn wrote: > Not until someone can explain how making /var/tmp a symlink to /tmp is > sensible, given that /var/tmp is documented as containing "temporary > files that are kept between system reboots" (see hier(7)). > > So basically, no. :-) Then let's get the other way around (change in /etc/rc): # Recover vi editor files. -find /var/tmp/vi.recover ! -type f -a ! -type d -delete +if [ -d /var/tmp/vi.recover ]; then + find /var/tmp/vi.recover ! -type f -a ! -type d -delete +fi vibackup=`echo /var/tmp/vi.recover/vi.*` if [ "$vibackup" != '/var/tmp/vi.recover/vi.*' ]; then echo 'Recovering vi editor sessions' And don't worry about loosing /var/tmp/vi.recover every time you reboot (unless you really care about loosing the abillity to recover vi edits between reboots) -- the first time you run vi it will recreate this directory. And let me notice that the original script assumes existence of this directory whereas if I don't run vi I won't get one... I use this small hack to get around the ugly error message I get every time I boot with MFS mounted /var/tmp -- suited me well until now. > > Ciao, > Sheldon. > Ady (@warpnet.ro) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message