From owner-freebsd-questions Wed May 22 12: 0:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.gbronline.com (mail.gbronline.com [12.145.226.4]) by hub.freebsd.org (Postfix) with ESMTP id 07A4137B431 for ; Wed, 22 May 2002 12:00:26 -0700 (PDT) Received: from daleco [12.145.236.119] by mail.gbronline.com (SMTPD32-7.06) id AA7810B20294; Wed, 22 May 2002 13:59:04 -0500 Message-ID: <00d701c201c2$da5ff480$93ec910c@daleco> From: "Kevin Kinsey, DaleCo, S.P." To: "Scott Aitken" Cc: References: <20020522184426.GA64024@gandalf.scott.sh> Subject: Re: delay services until pcmcia nics start Date: Wed, 22 May 2002 13:59:44 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG A hack------------------------- Probably not the best, but cron runs after hardware is set so you could add this tab: @reboot /path/to/squid -option Kevin Kinsey ----- Original Message ----- From: "Scott Aitken" To: Sent: Wednesday, May 22, 2002 1:44 PM Subject: delay services until pcmcia nics start > Hi all, > is there a way to delay the starting of certain services (eg. dhcp server or squid), until after a pcmcia NIC has started? > I have two nics, both pcmcia, one an 802.11 cisco aironet card, and the other is a xircom ethernet. > I use the /etc/start_if.ano and /etc/start_if.xe0 scripts to configure the cards. I also pause during the execution of /etc/start_if.ano for 60 seconds (for some reason it won't go into ad-hoc mode straight away). > > I need to delay the execution of the isc-dhcp server, otherwise it starts before both cards are up. It then doesn't listen on the interface that starts later. > Also, squid attempts to verify dns by resoving certain well-known hosts. It can't to this at the time it starts because neither nic is ready. (I know you can disable this with -D, but even still...) > > Thanks > Scott > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message