From owner-freebsd-questions@FreeBSD.ORG Sun Sep 12 21:41:01 2010 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 979F9106566B for ; Sun, 12 Sep 2010 21:41:01 +0000 (UTC) (envelope-from abergeron@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6477D8FC23 for ; Sun, 12 Sep 2010 21:41:00 +0000 (UTC) Received: by iwn34 with SMTP id 34so5106076iwn.13 for ; Sun, 12 Sep 2010 14:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=L2HDMKK2VxR/a8Q2ndF1qgKAO+xVapOxwxOhYxac7a8=; b=KcVlZ/xdycvuakiIPlGwfhLAZSnTgh96+JkcvTa9VMC7RGgU8AS6Nmt21pMNqkmQ/M F8UzD9LV/ncWpsARnVoE1j5p3FTQAPCxnnqL2Qmx6Xh0kyrxTcspqTiWYBxuAHark1GF hrZLSQ4xgP6UUwxWhTB6v/T/sMuOJ3pFpnMaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=XfAhW5YRzN7B4MTlEQxyWtyv2DLYRhBkKKu+t4QN8MlUf4Rko6YHxVwaBD1yRiJiYF uenECJxvwkpGNopiiZ4YT0jMMOWvrcxlxfDZOmxteBvhYHSuh6ebAzbQWaGwhatAOxC3 llsFR+EloHmwZtk23Xihnd7D+xYNIRA9dq4Ok= MIME-Version: 1.0 Received: by 10.231.161.80 with SMTP id q16mr4912793ibx.142.1284325880184; Sun, 12 Sep 2010 14:11:20 -0700 (PDT) Received: by 10.231.150.210 with HTTP; Sun, 12 Sep 2010 14:11:20 -0700 (PDT) Date: Sun, 12 Sep 2010 17:11:20 -0400 Message-ID: From: Arnaud Bergeron To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: Services do not start at boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2010 21:41:01 -0000 I have a FreeBSD 8.0-RELEASE installation with a UFS root and a ZFS pool for data and users. I have a couple of ports installed (netatalk, mediatomb) to share the content of the ZFS pool along with sharing it over NFS. After a fresh boot, the NFS shares do not work, mediatomb is not up and netatalk runs but does not share anything. There may be other things not working properly but those are the ones I notice. If I manually restart mountd, and the two ports using the rc.d scripts then everything works correctly until the next restart. I found this message in the archives which is similar to the problem I have except that I use dhcp: http://marc.info/?l=freebsd-questions&m=128354380615514&w=2 After checking the log I see that indeed my problem is that these services start before the network is available and they don't cope well with that. As a fix, I added dhclient to the REQUIRE: for NETWORKING and a 'sleep 10' after the dhclient command in the dhclient startup script and made sure that background_dhclient is NO, and it still doesn't work. I am at a loss. Arnaud