Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2000 11:55:55 +0200 (EET)
From:      Adrian Penisoara <ady@warpnet.ro>
To:        Sheldon Hearn <sheldonh@uunet.co.za>
Cc:        Trond Endrestol <trond@ramstind.gtf.ol.no>, FreeBSD stable <freebsd-stable@FreeBSD.ORG>, FreeBSD current <freebsd-current@FreeBSD.ORG>
Subject:   Re: Making sure /var/tmp/vi.recover exists during reboot 
Message-ID:  <Pine.BSF.4.10.10001141147160.75119-100000@ady.warpnet.ro>
In-Reply-To: <9039.947589746@axl.noc.iafrica.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10001141147160.75119-100000>