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
On 1/27/07, Vinny Abello <vinny@tellurian.com> wrote:> Hello, > > I think this is a relatively easy question to answer but couldn't find anything after some searching. >:> 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. >You need to add: # REQUIRE: sshd to the rc script in /usr/local/etc/rc.d that you want to start after sshd. Another option is to create a dummy script: #!/bin/sh # # PROVIDE: FAKESCRIPT # REQUIRE: sshd # BEFORE: <name of script your want to start after sshd> # This is a dummy dependency, to ensure that general purpose daemons # are run _after_ the above are. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.