From owner-freebsd-bugs Wed Jan 24 8: 0:27 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 21A8C37B402 for ; Wed, 24 Jan 2001 08:00:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0OG02R49659; Wed, 24 Jan 2001 08:00:02 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8D49D37B6CA for ; Wed, 24 Jan 2001 07:57:06 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0OFv6O49424; Wed, 24 Jan 2001 07:57:06 -0800 (PST) (envelope-from nobody) Message-Id: <200101241557.f0OFv6O49424@freefall.freebsd.org> Date: Wed, 24 Jan 2001 07:57:06 -0800 (PST) From: david@mu.org To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: conf/24612: rm -rf of /var/run/* at boot should be replaced with find /var/run -type f -exec rm Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 24612 >Category: conf >Synopsis: rm -rf of /var/run/* at boot should be replaced with find /var/run -type f -exec rm >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jan 24 08:00:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: David Drum >Release: 4.1-STABLE >Organization: The Paul Saab Fan Club >Environment: FreeBSD gladden.mouseplanet.com 4.1-STABLE FreeBSD 4.1-STABLE #2: Tue Sep 5 05:11:37 CDT 2000 root@gladden.mouseplanet.com:/usr/src/sys/compile/GLADDEN i386 exists as recently as FreeBSD elvis.mu.org 4.2-FEARSOME-20001103 FreeBSD 4.2-FEARSOME-20001103 #0: Fri Nov 3 20:46:05 CST 2000 root@elvis.mu.org:/b/src/sys/compile/h0h0Magic i386 >Description: In /etc/rc, in the function clean_var(), /var/run is cleaned out by running "rm -rf /var/run/*". If one has created subdirectories in /var/run owned by other users, as I suggest in http://www.freebsd.org/cgi/query-pr.cgi?pr=22038, the existing approach removes those subdirectories and causes problems when the non-root daemons launch. >How-To-Repeat: mkdir /var/run/named chown bind:bind /var/run/named Configure named.conf with "options { pid-file "/var/run/named/named.pid"; };" Reboot Watch /var/log/messages for Jan 14 00:20:41 gladden named[112]: couldn't create pid file '/var/run/named/named.pid' >Fix: Replace rm -rf /var/run/* with find /var/run -type f -exec rm {} \; in /etc/rc:clean_var() >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message