Date: Sat, 11 Jun 2016 11:23:53 -0700 From: Michael Sierchio <kudzu@tenebras.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: When your server boots too fast: How to slow it down? Message-ID: <CAHu1Y71kugYqWehQMZt0NnFcM05R1wA0zirnP5dSdKgWwy=LhA@mail.gmail.com> In-Reply-To: <20160611174849.GA2453@box-hlm-03.niklaas.eu> References: <20160611174849.GA2453@box-hlm-03.niklaas.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <my-IPv6> > Jun 11 17:52:53 box-hlm-03 sshd[970]: error: Bind to port 22 on > <my-IPv6> 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_<your-ext-if>="SYNCDHCP" - M
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHu1Y71kugYqWehQMZt0NnFcM05R1wA0zirnP5dSdKgWwy=LhA>