When your server boots too fast: How to slow it down?
kudzu at tenebras.com
Sat Jun 11 18:23:54 UTC 2016
On Sat, Jun 11, 2016 at 10:48 AM, Niklaas Baudet von Gersdorff <
stdin at 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:
> Jun 11 17:52:52 box-hlm-03 postfix: fatal: parameter
> inet_interfaces: no local interface found for <my-IPv6>
> Jun 11 17:52:53 box-hlm-03 sshd: error: Bind to port 22 on
> <my-IPv6> failed: Can't assign requested address.
> `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
More information about the freebsd-questions