Date: Tue, 27 Nov 2007 21:03:27 +0000 From: Daniel Bye <freebsd-questions@slightlystrange.org> To: freebsd-questions@freebsd.org Subject: Re: dansguardian at boot time. +gateway server Message-ID: <20071127210327.GB1042@torus.slightlystrange.org> In-Reply-To: <3120c9e30711270757s649af28bj8d695cf7ccc2a1a3@mail.gmail.com> References: <3120c9e30711270757s649af28bj8d695cf7ccc2a1a3@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--/NkBOFFp2J2Af1nK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 27, 2007 at 09:27:02PM +0530, ???????????? wrote: > Hello > I installed dansguardian , gave it's entry in my /etc/rc.conf > squid_enable=3D"YES" > dansguardian_enable=3D"YES" >=20 > I am getting error at the boot time dansguardian couldn't connected to > parent proxy. Whereas squid starts without error. > I am running squid over port 3121 and dansguardian on port 8080. >=20 > After logging in and giving command "dansguardian" it starts without any = error. It sounds as though they're either starting in the wrong order, or=20 dansguardian is starting before squid has had a chance to settle. You can check what order they're starting in by doing # rcorder /etc/rc.d* /usr/local/etc/rc.d/* and looking through the output for squid and dansguardian. Squid should appear earlier in the list. If they are starting in the correct order, try turning on squid's debugging to see why it is taking so long to=20 start. If they're starting in the wrong order, you can either rename the control scripts as Mark suggested, or you can utilise the rcorder(8) mechanism. In the squid control script, you should have this block near the top: # PROVIDE: squid # REQUIRE: LOGIN # KEYWORD: shutdown And in the dansguardian control script, you should have this: # PROVIDE: dansguardian # REQUIRE: NETWORKING SERVERS squid # KEYWORD: shutdown > Plus in linux I have /etc/rc.local configuration file which i use to > run special commands after my linux boots, > How to do the same with FreeBSD. You can create /etc/rc.local if you want, and it will run at the right time. However, it is lightly deprecated these days in favour of=20 /usr/local/etc/rc.d, as used by the ports. For each custom startup job you want to run at boot time, create an rcorder(8) style script in=20 /usr/local/etc/rc.d. rcorder(8) gives you great flexibility over the start order. Dan --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --/NkBOFFp2J2Af1nK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHTIYfixf5fBYiFmoRAu+yAJ9cm+m9jtTVVdvIfcIii6ugFvpqPwCfXVgT dTvjFUGXqMWDtQvoEyOVJ1k= =DNb3 -----END PGP SIGNATURE----- --/NkBOFFp2J2Af1nK--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071127210327.GB1042>