Date: Sun, 1 Feb 1998 10:15:22 +0100 (CET) From: blank@fox.uni-trier.de (Sascha Blank) To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/5619: /etc/rc doesn't clean /var/run properly Message-ID: <199802010915.KAA00335@sliphost37.uni-trier.de>
next in thread | raw e-mail | index | archive | help
>Number: 5619
>Category: bin
>Synopsis: /etc/rc doesn't clean /var/run properly
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Feb 1 01:20:01 PST 1998
>Last-Modified:
>Originator: Sascha Blank
>Organization:
>Release: FreeBSD 2.2.5-STABLE i386
>Environment:
A very recent 2.2.5-STABLE system. The /etc/rc file has the version number:
/etc/rc:
$Id: rc,v 1.104.2.32 1998/01/29 11:17:44 obrien Exp $
>Description:
During system startup /etc/rc cleans the /var/run directory. This works
well unless you have a port installed like xemacs-20.3 that creates a
subdirectory under /var/run (in this case /var/run/xemacs/lock). Because
of this I get the error message
rm: /var/run/xemacs: is a directory
every time /etc/rc is processed.
>How-To-Repeat:
Create a directory under /var/run and watch for the message as /etc/rc
is processed.
>Fix:
This small diff fixes the problem by replacing the rm command with a
more appropriate find-rm combination.
*** /usr/src/etc/rc Fri Jan 30 17:19:36 1998
--- /etc/rc Sun Feb 1 10:07:09 1998
***************
*** 98,104 ****
adjkerntz -i
! rm -f /var/run/*
# Keep a copy of the boot messages around
dmesg > /var/run/dmesg.boot
--- 98,104 ----
adjkerntz -i
! find /var/run -type f -exec rm -f {} \;
# Keep a copy of the boot messages around
dmesg > /var/run/dmesg.boot
--
Sascha Blank | "I prefer to work behind the scenes. The
Student and System Administrator | reward is nearly as great, and the risk
at the University of Trier, Germany | is far far less" - Ambassador Mollari in
mailto:blank@fox.uni-trier.de | in Babylon 5, "The coming of shadows"
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802010915.KAA00335>
