From owner-freebsd-stable@FreeBSD.ORG Fri Feb 3 19:41:21 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F1971065670 for ; Fri, 3 Feb 2012 19:41:21 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from thalia-smout.broadpark.no (thalia-smout.broadpark.no [80.202.8.21]) by mx1.freebsd.org (Postfix) with ESMTP id 358668FC0A for ; Fri, 3 Feb 2012 19:41:20 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from terra-smin.broadpark.no ([80.202.8.13]) by thalia-smout.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTP id <0LYU005TH1CN4U80@thalia-smout.broadpark.no> for freebsd-stable@freebsd.org; Fri, 03 Feb 2012 20:41:11 +0100 (CET) Received: from kg-v2.kg4.no ([84.215.134.159]) by terra-smin.broadpark.no (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTPA id <0LYU00B1S1CMZM70@terra-smin.broadpark.no> for freebsd-stable@freebsd.org; Fri, 03 Feb 2012 20:41:11 +0100 (CET) Date: Fri, 03 Feb 2012 20:41:10 +0100 From: Torfinn Ingolfsen To: freebsd-stable@freebsd.org Message-id: <20120203204110.cc933dc5.torfinn.ingolfsen@broadpark.no> In-reply-to: References: <20120202212222.e940f64c.torfinn.ingolfsen@broadpark.no> X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH Subject: Re: FreeBSD 8.2-stable: devd fails to restart X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2012 19:41:21 -0000 On Fri, 03 Feb 2012 08:34:10 +0300 Sergey Kandaurov wrote: > Please apply this patch and report how it goes for you. > http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d/devd.diff?r1=1.12;r2=1.13 > > This is not in 8-STABLE yet. It looks like it (or almost the same) is here already: root@kg-v2# more /etc/rc.d/devd #!/bin/sh # # $FreeBSD: src/etc/rc.d/devd,v 1.11.2.2 2011/04/29 20:31:52 dougb Exp $ # # PROVIDE: devd # REQUIRE: netif network_ipv6 # BEFORE: NETWORKING mountcritremote # KEYWORD: nojail shutdown . /etc/rc.subr name="devd" rcvar=`set_rcvar` command="/sbin/${name}" start_precmd=${name}_prestart stop_precmd=find_pidfile find_pidfile() { if get_pidfile_from_conf pid-file /etc/devd.conf; then pidfile="$_pidfile_from_conf" else pidfile="/var/run/${name}.pid" fi } devd_prestart () { find_pidfile # If devd is disabled, turn it off in the kernel to avoid memory leaks. if ! checkyesno ${rcvar}; then $SYSCTL hw.bus.devctl_disable=1 fi } load_rc_config $name run_rc_command "$1" HTH -- Torfinn