From owner-freebsd-questions@FreeBSD.ORG Tue Apr 25 07:11:06 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FC5316A401 for ; Tue, 25 Apr 2006 07:11:06 +0000 (UTC) (envelope-from beech@mangohealth.org) Received: from pinnacle.akherb.com (60-105-237-24.gci.net [24.237.105.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id B285143D46 for ; Tue, 25 Apr 2006 07:11:05 +0000 (GMT) (envelope-from beech@mangohealth.org) Received: by pinnacle.akherb.com (Postfix, from userid 1007) id BF5175CD8; Mon, 24 Apr 2006 23:11:04 -0800 (AKDT) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pinnacle.akherb.com X-Spam-Level: X-Spam-Status: No, score=0.0 required=4.0 tests=AWL autolearn=ham version=3.1.1 Received: from [192.168.2.160] (209-124-141-064.ip.arctic.net [209.124.141.64]) by pinnacle.akherb.com (Postfix) with ESMTP id 4AD455C0B; Mon, 24 Apr 2006 23:11:03 -0800 (AKDT) From: Beech Rintoul Organization: Mangohealth To: freebsd-questions@freebsd.org Date: Mon, 24 Apr 2006 23:10:46 -0800 User-Agent: KMail/1.9.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1184323.LbzXU93NbY"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200604242310.58585.beech@mangohealth.org> Cc: David Stanford Subject: Re: DenyHosts Startup Script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Apr 2006 07:11:06 -0000 --nextPart1184323.LbzXU93NbY Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 24 April 2006 19:29, David Stanford wrote: > Hello all, > > So I've recently just installed > DenyHostson my FreeBSD > 6.1-RC box and can't, for the life of me, get this daemon to start on boo= t. > I installed version 2.4b using the setup.py script. I'e moved > daemon-control to /usr/local/bin and all configuration files from the > default > /usr/share/denyhosts directory to /usr/local/etc/denyhosts (including > denyhosts.cfg). Here is what I've tried to get this to start at boot: > > 1.) Created a simple script file called denyhosts.sh in > /usr/local/etc/rc.d: > > #!/bin/sh > > /usr/local/bin/daemon-control start > > > 2.) Changed the previous denyhosts.sh script file to this: > > #!/bin/sh > > case "$1" in > start) > /usr/local/bin/daemon-control start > ;; > stop) > /usr/local/bin/daemon-control stop > ;; > *) > echo "Usage: $0 {start | stop}" > ;; > esac > > exit 0 > > 3.) Created an /etc/rc.local using the same script from 1.): > > #!/bin/sh > > /usr/local/bin/daemon-control start > > For all of these attempts, I even chmod'd them all to 777, but still no > good. I even changed both 1.) and 3.) to "/usr/local/bin/daemon-control > debug > ~/debug.output" and though the debug.output file was created, the= re > was no information in it. So now, 6 hours later (yes, 6 hours) of playing > with this has me now desperate to find anyone who has this set to start on > boot. Anyone? > > -David I start mine from cron. Just put @reboot in place of the day and time setti= ngs=20 and use the full path to the script (daemon-control.sh start). Works for me= =2E=20 See man 5 crontab Beech =2D-=20 =2D------------------------------------------------------------------------= =2D------------- Beech Rintoul - Sys. Administrator - beech@mangohealth.org /"\ ASCII Ribbon Campaign | Mangohealth \ / - NO HTML/RTF in e-mail | 201 East 9Th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - XanGo - http://www.mangohealth.org =2D------------------------------------------------------------------------= =2D------------- --nextPart1184323.LbzXU93NbY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBETcuC2TFLCHYGSF0RAluAAKCLgjOgaK2IRLLj2Tdj8ZzCt7QaOQCeO0pH l9pU5YnI1lJgcfHrogOOfhg= =uwB4 -----END PGP SIGNATURE----- --nextPart1184323.LbzXU93NbY--