From owner-freebsd-rc@FreeBSD.ORG Wed Oct 25 18:45:29 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09F2F16A407 for ; Wed, 25 Oct 2006 18:45:29 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2E6543D6D for ; Wed, 25 Oct 2006 18:45:27 +0000 (GMT) (envelope-from uspoerlein@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so158697uge for ; Wed, 25 Oct 2006 11:45:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:mime-version:content-type:content-disposition; b=ozOvbpIRduzQyqokRpLtsqj1IsnAcX0iG8wZhZs381k3OVyV5cAt59LD1YeWFu6SpfI46FGzJuuamJeood0Yl9uN3NpAWBazvInLL7MB9QG6R3zpihBLr2ckFDT+gXPv9cp2ruEPs3HUyeljbUNDKd+JjW3io5ncsX77V86jToQ= Received: by 10.67.97.7 with SMTP id z7mr1356631ugl; Wed, 25 Oct 2006 11:45:26 -0700 (PDT) Received: from roadrunner.q.local ( [85.180.131.23]) by mx.google.com with ESMTP id q40sm2589941ugc.2006.10.25.11.45.25; Wed, 25 Oct 2006 11:45:26 -0700 (PDT) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.8/8.13.8) with ESMTP id k9PH4njQ007474 for ; Wed, 25 Oct 2006 19:04:49 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.q.local (8.13.8/8.13.8/Submit) id k9PH4mEE007473 for freebsd-rc@freebsd.org; Wed, 25 Oct 2006 19:04:48 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Wed, 25 Oct 2006 19:04:48 +0200 From: Ulrich Spoerlein To: freebsd-rc@freebsd.org Message-ID: <20061025170448.GA6952@roadrunner.q.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: devd vs cleanvar ordering X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2006 18:45:29 -0000 Hello, I'm running 6.2-PRE and have bsnmpd and devd enabled. bsnmpd starting issueing errors upon boot, the devd.pipe in /var/run was not existant. Indeed, my system somehow ran cleanvar *after* devd. This was the output after setting rc_debug=YES and putting a 'ls /var/run/devd.pipe' at the top of /etc/rc.subr /etc/rc: DEBUG: The following interfaces were not configured: fwip0 ipw0 ls: /var/run/devd.pipe: No such file or directory /etc/rc.d/ipfilter: DEBUG: checkyesno: ipfilter_enable is set to NO. ls: /var/run/devd.pipe: No such file or directory /etc/rc: DEBUG: checkyesno: devd_enable is set to YES. Starting devd. /etc/rc: DEBUG: run_rc_command: _doit: /sbin/devd /etc/rc: DEBUG: checkyesno: devd_enable is set to YES. /var/run/devd.pipe /etc/rc: DEBUG: checkyesno: ipsec_enable is set to NO. /var/run/devd.pipe /etc/rc: DEBUG: checkyesno: cleanvar_enable is set to YES. /etc/rc: DEBUG: run_rc_command: evaluating cleanvar_prestart(). /etc/rc: DEBUG: run_rc_command: evaluating cleanvar_start(). ls: /var/run/devd.pipe: No such file or directory /etc/rc: DEBUG: checkyesno: isdn_enable is set to NO. ls: /var/run/devd.pipe: No such file or directory I solved this by putting 'REQUIRE: cleanvar' into the devd script. Strange thing is, that other 6.2 systems I administer do NOT have that problem. Perhaps there is an ordering race in rcorder? Ulrich Spoerlein Please keep me CC'ed. Thanks. -- A: Yes. >Q: Are you sure? > >A: Because it reverses the logical flow of conversation. > >>Q: Why is top posting frowned upon?