Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2012 23:37:56 -0500
From:      Jason Hellenthal <jhell@DataIX.net>
To:        Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: FreeBSD 8.2-stable: devd fails to restart
Message-ID:  <20120204043756.GA67863@DataIX.net>
In-Reply-To: <20120203204110.cc933dc5.torfinn.ingolfsen@broadpark.no>
References:  <20120202212222.e940f64c.torfinn.ingolfsen@broadpark.no> <CAE-mSOJkwbc%2BrPKhhEEXKRrCrgx7-D_Y7g158OFnB_b_oBdTqg@mail.gmail.com> <20120203204110.cc933dc5.torfinn.ingolfsen@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help

Just because of what I read already is pretty terse I am top-posting for
a reason.

$ su -
# /etc/rc.d/devd stop
# pgrep -l devd 	(This should show nothing if so kill the results)
# /sbin/devd -D -d	(Paste the results)


On Fri, Feb 03, 2012 at 08:41:10PM +0100, Torfinn Ingolfsen wrote:
> On Fri, 03 Feb 2012 08:34:10 +0300
> Sergey Kandaurov <pluknet@gmail.com> 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
> 
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

-- 
;s =;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120204043756.GA67863>