Date: Tue, 25 Apr 2006 03:22:03 -0400 From: "David Stanford" <dthomas53@gmail.com> To: "Daniel A." <ldrada@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: DenyHosts Startup Script Message-ID: <f2c91f770604250022v74a95510t1a59deb5e5990fe0@mail.gmail.com> In-Reply-To: <5ceb5d550604242336k2faf0cb2kf43937a90c06c9a9@mail.gmail.com> References: <f2c91f770604242029i5707c06ckfe42251117950cad@mail.gmail.com> <5ceb5d550604242336k2faf0cb2kf43937a90c06c9a9@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel, Much thanks, you're the man! Actually, I initially installed it from ports (ver. 2.2) and was having the same problem. I then went onto the DenyHosts website and read the changelog for 2.3 which stated "daemon-control-dist should now behave correctly on FreeBSD systems". Of course this still didn'= t help my problem. It seems to be a problem with running the daemon-control script at boot time, although I have no clue what it is specifically. /etc/crontab worked using: @reboot root /usr/local/bin/denyhosts.py --daemon --config=3D/usr/local/etc/denyhosts/denyhosts.cfg But since I prefer keeping everything consistent, I now run it from my /usr/local/etc/rc.d/denyhosts.sh which simply reads: #!/bin/sh /usr/local/bin/denyhosts.py --daemon --config=3D/usr/local/etc/denyhosts/denyhosts.cfg Looking at this now, I can't believe it never occurred to me to just run th= e denyhosts.py file directly seeing as how daemon-control invokes it anyway. But in any event, thanks for the help! -David On 4/25/06, Daniel A. <ldrada@gmail.com> wrote: > > On 4/25/06, David Stanford <dthomas53@gmail.com> wrote: > > Hello all, > > > > So I've recently just installed > > DenyHosts<http://denyhosts.sourceforge.net/>on my FreeBSD > > 6.1-RC box and can't, for the life of me, get this daemon to start on > boot. > > 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, > there > > 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 > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > > > Hi David, > I suggest that you install DenyHosts from the ports collection, and > then use a cronjob to start it. > add to /etc/crontab: > @reboot root /usr/local/bin/denyhosts.py --daemon -c > /usr/local/etc/denyhosts.cfg > > Then your biggest concern is to configure denyhosts to your likings, > which I guess you have done already ;) >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f2c91f770604250022v74a95510t1a59deb5e5990fe0>