From owner-freebsd-bugs Mon Jul 1 4:30:17 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 404CE37B401 for ; Mon, 1 Jul 2002 04:30:07 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8ACA43E09 for ; Mon, 1 Jul 2002 04:30:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g61BU6JU097693 for ; Mon, 1 Jul 2002 04:30:06 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g61BU6J8097689; Mon, 1 Jul 2002 04:30:06 -0700 (PDT) Date: Mon, 1 Jul 2002 04:30:06 -0700 (PDT) Message-Id: <200207011130.g61BU6J8097689@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: conf/39976: vi recovery halting boot process Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/39976; it has been noted by GNATS. From: Peter Pentchev To: Jan Srzednicki Cc: bug-followup@FreeBSD.org Subject: Re: conf/39976: vi recovery halting boot process Date: Mon, 1 Jul 2002 14:27:57 +0300 On Sat, Jun 29, 2002 at 01:44:16AM -0000, Jan Srzednicki wrote: > > >Number: 39976 > >Category: conf > >Synopsis: vi recovery halting boot process > >Arrival-Date: Fri Jun 28 18:50:02 PDT 2002 > >Originator: Jan Srzednicki > >Release: FreeBSD 4.6-RC i386 > >Organization: > Dywizjonet > >Environment: > System: FreeBSD spitfire.303.krakow.pl 4.6-RC FreeBSD 4.6-RC #5: Tue May 21 23:07:20 CEST 2002 root@spitfire.303.krakow.pl:/usr/obj/usr/src/sys/GRABKI i386 > > >Description: > > In some cirtumstances, the "vi recovery" thing started at boot time > fails to work and the system just freezes on that point. Hitting Ctrl-C > usually helps, but not always; it's quite irritating, especially when one > does not use vi at all. The 'vi recovery' code in the startup scripts searches for files in the /var/tmp/vi.recovery/ directory named recover.*; if any such files are found, it attempts to e-mail the user whose editing session crashed. The fact that the recovery code is attempting to do something would seem to imply that the startup scripts have found such recover.* files, which would mean that maybe somebody *was* actually using vi(1) or something else that generated that kind of files :) Thus, the most probable reason for the 'vi recovery' taking a long time would be some misconfiguration of that machine's mail server/client. The startup scripts attempt to send mail using the 'sendmail' command, so a properly set up /etc/mail/mailer.conf file in addition to a mail server or a null-mailer running on that machine, should work fine. > I thing a solution would be putting some new option into rc.conf (like > vi_recovery_enable="YES/NO"), which would control starting or not > the vi recovery thing. If you are really, really sure that no one would be using vi, and that no notification of crashed sessions is necessary, you could add a simple shell script in /usr/local/etc/rc.d/, named, say, remove-recover.sh, which would execute a 'rm -rf /var/tmp/vi.recovery/recover.*' command :) > >How-To-Repeat: > > I'm not sure why it happens; none of my servers seem to be affected, > but my workstation is. > > >Fix: Configure your workstation's mail server, maybe to a simple mail relay (null-mailer)? G'luck, Peter -- Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence claims to be an Epimenides paradox, but it is lying. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message