From owner-freebsd-bugs  Sat May 16 03:14:03 1998
Return-Path: <owner-freebsd-bugs@FreeBSD.ORG>
Received: (from majordom@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id DAA22178
          for freebsd-bugs-outgoing; Sat, 16 May 1998 03:14:03 -0700 (PDT)
          (envelope-from owner-freebsd-bugs@FreeBSD.ORG)
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA22125
          for <freebsd-bugs@FreeBSD.org>; Sat, 16 May 1998 03:14:01 -0700 (PDT)
          (envelope-from gnats@FreeBSD.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.8.8/8.8.5) id DAA17580;
	Sat, 16 May 1998 03:10:02 -0700 (PDT)
Received: from myrddin.demon.co.uk (exim@myrddin.demon.co.uk [158.152.54.180])
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA22087
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 May 1998 03:13:27 -0700 (PDT)
          (envelope-from dom@myrddin.demon.co.uk)
Received: from dom by myrddin.demon.co.uk with local (Exim 1.80 #1)
	id 0yaQh4-00004y-00; Fri, 15 May 1998 21:03:02 +0100
Message-Id: <E0yaQh4-00004y-00.qmail@myrddin.demon.co.uk>
Date: Fri, 15 May 1998 21:03:02 +0100
From: dom@myrddin.demon.co.uk
To: FreeBSD-gnats-submit@FreeBSD.ORG
X-Send-Pr-Version: 3.2
Subject: bin/6653: change to /etc/rc
Sender: owner-freebsd-bugs@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.org


>Number:         6653
>Category:       bin
>Synopsis:       The rc script sometimes produces errors which are unnecessary.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 16 03:10:01 PDT 1998
>Last-Modified:
>Originator:     Dom Mitchell
>Organization:
Big orange angry things, inc.
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

FreeBSD myrddin.demon.co.uk 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Sun Apr 26 18:11:38 BST 1998     dom@myrddin.demon.co.uk:/usr/src/sys/compile/MYRDDIN  i386

myrddin# ident /etc/rc
/etc/rc:
     $Id: rc,v 1.143 1998/01/08 17:08:22 joerg Exp $

>Description:

If there are directories in the /var/run directory (eg: as used by the
sudo and xemacs ports), then the line in /etc/rc that says:

rm -f /var/run/*

Produces an error on boot up time, which could confuse a new user.

>How-To-Repeat:

1. Install sudo.
2. Use sudo.
3. Reboot.

>Fix:

Change the above mentioned line to:

rm -f /var/run/* 2>/dev/null

You may also wish to add the following statement to a point after which
/usr is mounted:

find /var/run -type f -print | xargs rm -f
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message