Date: Wed, 24 Jan 2001 07:57:06 -0800 (PST) From: david@mu.org To: freebsd-gnats-submit@FreeBSD.org Subject: conf/24612: rm -rf of /var/run/* at boot should be replaced with find /var/run -type f -exec rm Message-ID: <200101241557.f0OFv6O49424@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101241557.f0OFv6O49424>