From owner-freebsd-stable@FreeBSD.ORG Sun Apr 24 06:46:31 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB02116A4CE for ; Sun, 24 Apr 2005 06:46:31 +0000 (GMT) Received: from web54003.mail.yahoo.com (web54003.mail.yahoo.com [206.190.36.227]) by mx1.FreeBSD.org (Postfix) with SMTP id 2356C43D1D for ; Sun, 24 Apr 2005 06:46:31 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: (qmail 16282 invoked by uid 60001); 24 Apr 2005 06:46:30 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Mierzz083bzVYuaTVVIjbYp5ZRiPrZoIohCXwKBrYec9gTKqaG0xGRhtdhyAUOZewghVdoZFJS0s9GODIfj4HCxRtI0UWD+FW1f30fChBLdNeXzF6wlNCpaS1RGqh0TQeqAMLPTaaS1hayxmTLEJjv0NbExCIY8t07uvptY/lqY= ; Message-ID: <20050424064630.16280.qmail@web54003.mail.yahoo.com> Received: from [147.46.44.181] by web54003.mail.yahoo.com via HTTP; Sat, 23 Apr 2005 23:46:30 PDT Date: Sat, 23 Apr 2005 23:46:30 -0700 (PDT) From: Rob To: doconnor@gsoft.com.au MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: FreeBSD Stable Subject: Re: [PATCH] Re: /etc/rc.d/sshd : "kldload random" missing? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 06:46:31 -0000 Daniel O'Connor wrote: > On Tue, 19 Apr 2005 17:06, Daniel O'Connor wrote: > >>On Tue, 19 Apr 2005 16:43, Rob wrote: >> >>>Should I submit a patch here? >>> >>>Following patch works fine for me >>>(be aware some lines are wrapped :[ ) >> >>I think a more correct solution would be to make a >>'random' rc.d script >>which sshd depends on (and others if they're found >>to need it) > > > Heh actually now that I look.. there IS a random > script already.. > > Perhaps.. > [inchoate 17:08] /etc/rc.d >diff -u sshd.orig sshd > --- sshd.orig Tue Apr 19 17:07:52 2005 > +++ sshd Tue Apr 19 17:07:59 2005 > @@ -5,7 +5,7 @@ > # > > # PROVIDE: sshd > -# REQUIRE: LOGIN cleanvar > +# REQUIRE: LOGIN cleanvar random > > . /etc/rc.subr Either I don't understand this, or it is not working properly. I am using 5-Stable, not Current, so the 'cleanvar' is not there. So in /etc/rc.d/sshd I have this line: # REQUIRE: LOGIN random I then do: /etc/rc.d/random stop /etc/rc.d/sshd stop /etc/rc.d/sshd start But the random script is not executed. I have added a echo statement in the random_start() function, but nothing is printed out. It seems that random is not started at all when sshd is started. Or do I misunderstand something here? Rob. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com