From owner-freebsd-questions@FreeBSD.ORG Tue Nov 27 21:03:31 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F26D16A468 for ; Tue, 27 Nov 2007 21:03:31 +0000 (UTC) (envelope-from freebsd-questions@slightlystrange.org) Received: from catflap.slightlystrange.org (cpc5-cmbg1-0-0-cust497.cmbg.cable.ntl.com [86.6.1.242]) by mx1.freebsd.org (Postfix) with ESMTP id 0F05E13C4E9 for ; Tue, 27 Nov 2007 21:03:30 +0000 (UTC) (envelope-from freebsd-questions@slightlystrange.org) Received: by catflap.slightlystrange.org (Postfix, from userid 106) id CD1346108; Tue, 27 Nov 2007 21:03:29 +0000 (GMT) Received: from torus.slightlystrange.org (torus.slightlystrange.org [10.1.3.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by catflap.slightlystrange.org (Postfix) with ESMTP id 77C9060E2 for ; Tue, 27 Nov 2007 21:03:29 +0000 (GMT) Received: (from danielby@localhost) by torus.slightlystrange.org (8.14.2/8.13.4/Submit) id lARL3Sxe003343 for freebsd-questions@freebsd.org; Tue, 27 Nov 2007 21:03:28 GMT (envelope-from freebsd-questions@slightlystrange.org) Date: Tue, 27 Nov 2007 21:03:27 +0000 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20071127210327.GB1042@torus.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <3120c9e30711270757s649af28bj8d695cf7ccc2a1a3@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/NkBOFFp2J2Af1nK" Content-Disposition: inline In-Reply-To: <3120c9e30711270757s649af28bj8d695cf7ccc2a1a3@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A Subject: Re: dansguardian at boot time. +gateway server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2007 21:03:31 -0000 --/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--