From owner-freebsd-rc@FreeBSD.ORG Sun Oct 7 15:44:01 2007 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5A8716A418 for ; Sun, 7 Oct 2007 15:44:01 +0000 (UTC) (envelope-from jay.quest4@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id 3164813C468 for ; Sun, 7 Oct 2007 15:44:00 +0000 (UTC) (envelope-from jay.quest4@gmail.com) Received: by ug-out-1314.google.com with SMTP id a2so797046ugf for ; Sun, 07 Oct 2007 08:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:from:to:cc:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; bh=elZ5gvGo+BchZkPMiQZwjhJY969fIVxDhrzaL+F6zug=; b=jy0QHNevJyTjBmx28s1w16srCkimyswTPG4lZy1s3HofBIPOfOBWn3ocovIl7b6jMWqWcvr0E+Sgawte6C6ARP2rgUL3z4OIlR5P9jBgGENz7M825oEq+WBZMJWKr59bBrA3YLOTtCEKoWsi8pNFp+h4Jup9F9jkVby9oiMnscg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:from:to:cc:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=Z6HgJh6tmtcJuzXMIQvDPLKgCSHAWToMFDJVxIizqJIMSRrvHSZvjQ18YeojvDUfVZLK3oy1oY/Vams9SbdHX5BaGuayiDulghri0Bd7Pi03ARw88PUVNkyDS9TDhhw4A5MaYKIpvZaCyl3EP11+E/1tU4wmwhFdQ4ZVqNfCwTk= Received: by 10.66.218.15 with SMTP id q15mr5776341ugg.1191771839563; Sun, 07 Oct 2007 08:43:59 -0700 (PDT) Received: from 4BANKS ( [12.5.189.24]) by mx.google.com with ESMTPS id k5sm12498777nfh.2007.10.07.08.43.56 (version=SSLv3 cipher=RC4-MD5); Sun, 07 Oct 2007 08:43:58 -0700 (PDT) Message-ID: <000e01c808f8$df131320$18bd050c@4BANKS> From: "Jay Banks" To: "Mike Makonnen" References: <004d01c80830$5447e770$90bd050c@4BANKS> <20071006171455.GA71986@terra.mike.lan> <005601c8084f$526c3180$90bd050c@4BANKS> <20071006211506.GA7075@terra.mike.lan> Date: Sun, 7 Oct 2007 10:43:49 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Cc: freebsd-rc@freebsd.org Subject: Re: Getting a script to run at boot 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: Sun, 07 Oct 2007 15:44:01 -0000 > Well, that's the problem then. The '--daemon' switch is misleading. You > should get it to work as expected by adding a '&' at the end of the Took me a little while to get that to work, but I finally got it. > command-line. Just for kicks I installed it on my system and with > the attached script and the following in my /etc/rc.conf it seems to > work as expected (though I haven't tried running it on startup): It did seem to work. I would be interested to know if yours ran on a reboot, because mine didn't. Since it did seem to work like a daemon, though, and worked from my terminal session (but still not on reboot), I got the bright idea of running it from a cron job again, where I once again got the error that fping wasn't found. So I copied fping to /sbin (cp /usr/local/sbin/fping /sbin) and sntop just started to work. So I tried it on reboot again, and it is actually running after a reboot. Hallelujah. A whole weekend taken up just to get a script to run on a reboot. Good thing I don't have a life! I really appreciate the help. I couldn't have done it without you. I'm the kind of guy that really does try to figure it out on my own before asking for help, but I wouldn't have figured out that "&" thing at all. Jay Banks