From owner-freebsd-stable@FreeBSD.ORG Sat Jan 27 11:29:20 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EDEE316A400 for ; Sat, 27 Jan 2007 11:29:20 +0000 (UTC) (envelope-from vinny@tellurian.com) Received: from mail1.tellurian.net (mail1.tellurian.net [216.182.1.23]) by mx1.freebsd.org (Postfix) with ESMTP id 97F0513C458 for ; Sat, 27 Jan 2007 11:29:20 +0000 (UTC) (envelope-from vinny@tellurian.com) Received: from [216.182.1.34] (cactus.tellurian.net [216.182.1.34]) by mail1.tellurian.net ([216.182.1.23] Tellurian Networks Mail Server version v3.8f2-2) with ESMTP id 570826389-1926380 for ; Sat, 27 Jan 2007 01:23:30 -0500 Message-ID: <45BAEFE0.3080408@tellurian.com> Date: Sat, 27 Jan 2007 01:23:28 -0500 From: Vinny Abello Organization: Tellurian Networks User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: freebsd-stable@freebsd.org X-Enigmail-Version: 0.94.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Authenticated-User: vinny@tellurian.com X-Ultimate-Internet-Connection: Tellurian Networks Subject: How to start rc script after sshd starts? 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: Sat, 27 Jan 2007 11:29:21 -0000 Hello, I think this is a relatively easy question to answer but couldn't find anything after some searching. I'm running: FreeBSD engbox.tellurian.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Sat Jan 27 00:37:31 EST 2007 (yeah, pretty recent as of this email) :) I have a daemon that apparently does a check using ssh-keyscan against the loopback address when it starts up. The problem I have is that sshd is not started when the script runs to start this daemon, so it fails and I end up having to start it manually. What is the recommended way to get this script to start after sshd has started up? I was hoping to not have to hack any rc scripts up from their defaults for starting up the system if possible. It's a standard rc script in /usr/local/etc/rc.d. If it matters, the daemon is smokeping. I can stop it from using ssh-keyscan completely as I really don't use the probe at all in smokeping but I'm curious as to the proper way of making this work. Any pointers are appreciated. Thanks! -- Vinny Abello Network Engineer Server Management vinny@tellurian.com (973)300-9211 x 125 (973)940-6125 (Direct) PGP Key Fingerprint: 3BC5 9A48 FC78 03D3 82E0 E935 5325 FBCB 0100 977A Tellurian Networks - The Ultimate Internet Connection http://www.tellurian.com (888)TELLURIAN "Courage is resistance to fear, mastery of fear - not absence of fear" -- Mark Twain