From owner-freebsd-questions Wed May 22 11:44:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from gandalf.scott.sh (c16496.sunsh2.vic.optusnet.com.au [210.49.240.115]) by hub.freebsd.org (Postfix) with SMTP id 085C737B400 for ; Wed, 22 May 2002 11:44:33 -0700 (PDT) Received: from gandalf.scott.sh (localhost [127.0.0.1]) by gandalf.scott.sh (8.12.3/8.12.2) with ESMTP id g4MIiRoX064068 for ; Thu, 23 May 2002 04:44:27 +1000 (EST) (envelope-from scotia@gandalf.scott.sh) Received: (from scotia@localhost) by gandalf.scott.sh (8.12.3/8.12.3/Submit) id g4MIiRTa064067 for freebsd-questions@FreeBSD.ORG; Thu, 23 May 2002 04:44:27 +1000 (EST) Date: Thu, 23 May 2002 04:44:27 +1000 From: Scott Aitken To: freebsd-questions@FreeBSD.ORG Subject: delay services until pcmcia nics start Message-ID: <20020522184426.GA64024@gandalf.scott.sh> Mail-Followup-To: freebsd-questions@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.99i 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 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