From nobody@FreeBSD.org Sun Apr 18 21:51:44 2010 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15890106564A for ; Sun, 18 Apr 2010 21:51:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 04DA48FC13 for ; Sun, 18 Apr 2010 21:51:44 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o3ILph0T025036 for ; Sun, 18 Apr 2010 21:51:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o3ILphY3025035; Sun, 18 Apr 2010 21:51:43 GMT (envelope-from nobody) Message-Id: <201004182151.o3ILphY3025035@www.freebsd.org> Date: Sun, 18 Apr 2010 21:51:43 GMT From: Paul Hoffman To: freebsd-gnats-submit@FreeBSD.org Subject: BEFORE in rcorder not always honored X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 145816 >Category: conf >Synopsis: [rc.d] BEFORE in rcorder not always honored >Confidential: no >Severity: non-critical >Priority: low >Responsible: dougb >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 18 22:00:08 UTC 2010 >Closed-Date: Thu Apr 22 05:35:54 UTC 2010 >Last-Modified: Thu Apr 22 05:35:54 UTC 2010 >Originator: Paul Hoffman >Release: 8.0 >Organization: >Environment: FreeBSD hoffman.proper.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5 16:02:27 UTC 2010 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: I have sshd running from inetd, and I wanted inetd to launch before sendmail because sendmail sometimes hangs. Thus, I added the following to /etc/rc.d/inetd: # BEFORE: sendmail However, 'rcorder /etc/rc.d/* /usr/local/etc/rc.d/*' shows me that inetd is still running (way) after sendmail in this case. If I change the line in inetd to # BEFORE: sshd then rcorder shows inetd before sshd, which was always before sendmail. Thus, for some reason, asking for before sendmail doesn't work, but asking for before sshd does. >How-To-Repeat: Edit /etc/rc.d/inetd as described above, and see the results in 'rcorder /etc/rc.d/* /usr/local/etc/rc.d/*' >Fix: >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Mon Apr 19 05:32:59 UTC 2010 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=145816 From: Mikolaj Golub To: Paul Hoffman Cc: freebsd-rc@FreeBSD.org, bug-followup@FreeBSD.org Subject: Re: conf/145816: BEFORE in rcorder not always honored Date: Wed, 21 Apr 2010 22:54:41 +0300 On Sun, 18 Apr 2010 21:51:43 GMT Paul Hoffman wrote: > I have sshd running from inetd, and I wanted inetd to launch before sendmail > because sendmail sometimes hangs. Thus, I added the following to > /etc/rc.d/inetd: > # BEFORE: sendmail > However, 'rcorder /etc/rc.d/* /usr/local/etc/rc.d/*' shows me that inetd is > still running (way) after sendmail in this case. Please note in sendmail rc script: # PROVIDE: mail So you need to add: # BEFORE: mail to have this working as you expect. -- Mikolaj Golub From: Paul Hoffman To: Mikolaj Golub Cc: freebsd-rc@FreeBSD.org, bug-followup@FreeBSD.org Subject: Re: conf/145816: BEFORE in rcorder not always honored Date: Wed, 21 Apr 2010 13:34:41 -0700 At 10:54 PM +0300 4/21/10, Mikolaj Golub wrote: >On Sun, 18 Apr 2010 21:51:43 GMT Paul Hoffman wrote: > >> I have sshd running from inetd, and I wanted inetd to launch before sendmail >> because sendmail sometimes hangs. Thus, I added the following to >> /etc/rc.d/inetd: >> # BEFORE: sendmail >> However, 'rcorder /etc/rc.d/* /usr/local/etc/rc.d/*' shows me that inetd is >> still running (way) after sendmail in this case. > >Please note in sendmail rc script: > ># PROVIDE: mail > >So you need to add: > ># BEFORE: mail > >to have this working as you expect. That makes sense. I did not get from the rcorder man page and looking in a few modules that the PROVIDE names might be different than the module names. Feel free to close this PR. --Paul Hoffman State-Changed-From-To: open->closed State-Changed-By: dougb State-Changed-When: Thu Apr 22 05:35:13 UTC 2010 State-Changed-Why: Closed at originator's request. Responsible-Changed-From-To: freebsd-rc->dougb Responsible-Changed-By: dougb Responsible-Changed-When: Thu Apr 22 05:35:13 UTC 2010 Responsible-Changed-Why: I'm closing this one. http://www.freebsd.org/cgi/query-pr.cgi?pr=145816 >Unformatted: