From owner-freebsd-questions@freebsd.org Mon Mar 28 18:55:12 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 316FDAE0BA9 for ; Mon, 28 Mar 2016 18:55:12 +0000 (UTC) (envelope-from sergeig.public@gmail.com) Received: from mail-vk0-x232.google.com (mail-vk0-x232.google.com [IPv6:2607:f8b0:400c:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DF62F107C for ; Mon, 28 Mar 2016 18:55:11 +0000 (UTC) (envelope-from sergeig.public@gmail.com) Received: by mail-vk0-x232.google.com with SMTP id e185so167110820vkb.1 for ; Mon, 28 Mar 2016 11:55:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=yzTgDQYU2tv59aDsE8lJyvfHaxSridPB17g/8NMIX2I=; b=UOlJ9V8eBlHRKSF8jVbuBnL+PCfCzGgrWAN4ULkSEHb/KOQTsqkGzAFPtiwDH/+QcR HtneoOlLnnwy3xgxntzrYSeH1d/d4ni61N0sKmdAu/iBENuKXKvqXAA8FxX3DsW1uPbX ppm8LiDuA+DvBg8nrnzTy77Rtc8SPeAsEm5i382uDeWLyQ28N/MT34EcAdD58l10SwjO 4BWiXzMXISr6Wi6KJvKrHFk0o9xoJdWOqD/n9wyBFAN6NNURNErmALt6mv0Ty9SwbXRG Fa075rq4Qu18KOKbolxXZJRU8rBD8Q3WidJlLlq9UOkjRZ4ezDjCbAyg59CxeJ9bk4YR NKpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=yzTgDQYU2tv59aDsE8lJyvfHaxSridPB17g/8NMIX2I=; b=Y+MeYiJxjIVKWtOYQO9lHdxlUFan69xoTdVr04LVtWM9gt1R1G2J/TeX8AApRyzUtr HU/z024D/Ladl7u8NY/bTJIFa4bJrYjQxGlUh1qokuc4fiRh/jQursZ4Tfh383rFjfnF 9VL1HMS6uavCEWWFBYpmK3NVj39YkWU7yk4Z9uak0Yr2xI50MOWCDcKXKQ09yjYJkCbj xaLMLygCjsZH9u9rf7eLZtCD/voCg4W/cG95AgnSIUOYKvsrMmG9Ez3gOWxkK7zz48d0 UjwF7/KENQYLj04bLNsYSHyZVvvqYasW+5YjKb8F5sFpG9PsjHCb8NyQJUMaUdiLY/ZM tR8Q== X-Gm-Message-State: AD7BkJJHa7Yv5JHUjy321ZGaACaPi8L/ilo1wxPxJ+pC4sGIBbt5GevcZMITs/plxYOHnwoOkCTcNlc8eI19pA== MIME-Version: 1.0 X-Received: by 10.159.35.87 with SMTP id 81mr16044074uae.10.1459191311042; Mon, 28 Mar 2016 11:55:11 -0700 (PDT) Received: by 10.31.174.132 with HTTP; Mon, 28 Mar 2016 11:55:10 -0700 (PDT) In-Reply-To: <20160328180531.GA76011@neutralgood.org> References: <20160328180531.GA76011@neutralgood.org> Date: Mon, 28 Mar 2016 11:55:10 -0700 Message-ID: Subject: Re: how to troubleshoot services startup on reboot From: Sergei G To: "Kevin P. Neal" Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2016 18:55:12 -0000 I know about the service -e command. However, that's of little help when it comes to service startup order. I've had this problem in the past with FreeBSD Hyper-V guest, because it was taking too long to obtain IP from DHCP. I even had to set a setting to make it wait to obtain IP prior to proceeding with the rest of boot. On Mon, Mar 28, 2016 at 11:05 AM, Kevin P. Neal wrote: > On Mon, Mar 28, 2016 at 10:57:00AM -0700, Sergei G wrote: > > I have service startup failure probably due to DNS resolution. I think > > that local unbind is not available during some services startup. For > > example, nginx reports failure to resolve network names and fails to > start. > > > > However, there is little I can obtain about service startup order from > > logs, because there is no entry like "starting local unbind" in > > /var/log/messages. > > Use the 'service' command. Try 'service -e', but I'm not 100% sure if it > will print all enabled services. But 'service -r' will show you everything > including the stuff that is turned off. > -- > Kevin P. Neal http://www.pobox.com/~kpn/ > > "It sounded pretty good, but it's hard to tell how it will work out > in practice." -- Dennis Ritchie, ~1977, "Summary of a DEC 32-bit machine" >