From owner-freebsd-questions@freebsd.org Sat Jun 11 18:23:54 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 64CC9AF0AEE for ; Sat, 11 Jun 2016 18:23:54 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-qk0-x229.google.com (mail-qk0-x229.google.com [IPv6:2607:f8b0:400d:c09::229]) (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 286F32109 for ; Sat, 11 Jun 2016 18:23:54 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by mail-qk0-x229.google.com with SMTP id s186so52296364qkc.1 for ; Sat, 11 Jun 2016 11:23:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenebras-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=b0yo12h5qliVYciM2R7KEGj9/dUx/5ywqn6VChAPArM=; b=W/6hKdnRnWsqsXWxw7kv3866Kf0STK+M1V8AsJLKmmH4Yakq+bHCxeRhb1aishOqfv QcB6QXARKzxKiMsbI/YBkPzcaoa2hSg/+lzs5aUA7BIrNEMDVvc80LpAMlTmk9MzFPVJ wE8c3aHcNOOzoHH+9w4H9v73vD0W624PDewsfvG+8R6XdI6sRy4bF29+KHVNkFIaesZi EPav45+r+JhYp4Q1SotP9uZfmBM0j7HT5nclXz1GNVrgEoiG1Za+drCgfqGPDJdk+Oo3 XsEbCmTiyPVhI/tHfntpjuD7fUSIMnkhG3X2n8ZzCbwtx5F7IOagZjHIbm+8PdxjN7Lq DSEg== 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; bh=b0yo12h5qliVYciM2R7KEGj9/dUx/5ywqn6VChAPArM=; b=ly8OMtG8RGU0oidofUyV3HxVkBTRWsGU0FNjS8wpU70mn2R2iwr2cSkNThDEsjsECg Clu4P/BhWxzEYyPQWUuAHZ9RgZ2CtTQvvStsdJ6eyTUra6X0uY6b2B9pbraSSKHyZx2A tS8bTF5u/6FJeSMURv7IX80mptCtQ8WNmE5v+scYZpDCTOBKA+jpZ15g3AyDGsYR9KKD 0ljS9C1hPzqrnyxUSPpQeZSBkIu/ajLI1JLgxga+ofxDu1PAi6zXtw0lAJBo/lxx3Ic/ O8n1N8lmDqe0/h2vu23HrRSqxxj4SwHbyPIN/Skfe97uF7DzD8BD1f4LsbT2EEw01l9R lyDg== X-Gm-Message-State: ALyK8tL2J5vzDIrwQ/QK80rljBEAwCqIFRWtZlw1qQhuphjyBvqNQrEzrSVOaNFS7gGAGodFbmlbPTO4mUDFNqf6 MIME-Version: 1.0 X-Received: by 10.55.165.4 with SMTP id o4mr7501690qke.15.1465669433200; Sat, 11 Jun 2016 11:23:53 -0700 (PDT) Received: by 10.200.39.226 with HTTP; Sat, 11 Jun 2016 11:23:53 -0700 (PDT) In-Reply-To: <20160611174849.GA2453@box-hlm-03.niklaas.eu> References: <20160611174849.GA2453@box-hlm-03.niklaas.eu> Date: Sat, 11 Jun 2016 11:23:53 -0700 Message-ID: Subject: Re: When your server boots too fast: How to slow it down? From: Michael Sierchio To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jun 2016 18:23:54 -0000 On Sat, Jun 11, 2016 at 10:48 AM, Niklaas Baudet von Gersdorff < stdin@niklaas.eu> wrote: > For the last days I have been wondering why some daemons don't > start during boot process e.g., ssh, tinc and postfix. Today > I noticed the following /var/log/messages: > > 8<---- > Jun 11 17:52:52 box-hlm-03 postfix[908]: fatal: parameter > inet_interfaces: no local interface found for > Jun 11 17:52:53 box-hlm-03 sshd[970]: error: Bind to port 22 on > failed: Can't assign requested address. > 8<---- > > `sockstat -46lj 0` shows that postfix isn't running at all and > sshd only listens on IPv4. > > But if I issue > > service sshd restart > service postfix restart > service tincd restart > > all (re)start without any problems. Checking `sockstat`, then, > they listen on IPv4 and IPv6. > > I assume that it takes a bit for my server to get its public > IPv6. So it isn't assigned when sshd, postfix, and tincd are > started; thus all of them (partly) fail. It's just an > assumption, the only idea I have to explain this behaviour. > Assuming your external IP is assigned via DHCP... in /etc/rc.conf ifconfig_="SYNCDHCP" - M