From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6F662138542 for ; Tue, 29 Oct 2013 18:48:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 559B3E09EC; Tue, 29 Oct 2013 18:48:06 +0000 (UTC) Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 42350E0969 for ; Tue, 29 Oct 2013 18:48:04 +0000 (UTC) Received: by mail-ee0-f44.google.com with SMTP id c4so133052eek.3 for ; Tue, 29 Oct 2013 11:48:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=qaI85Vxb2AFuU6ErQrQDRDynvtCUVUZ5b5jOUT/bxYU=; b=Z7p8betudciLeQFI81Ko6Ixjtlvk10qBnwUW/xmLyU+tLPMhdX8kUqGtNmxzMicSkB 9v3Jr9q3RtAsAxiQ2vntLhmjj1ppX3YAzUVxrdXQFLskvztqsfjiE1T575HoJzNwWFUL ba08zTemzI7PjMK3yUGLqxZFEoAvVQpcrN3CAWNEH0AZaYYWguir3+Yic+EYo0kD7ilo 63oDYDtY0wUPJ3P+bUflzAx9JGB11Qd6x2O8Z8dbqU0qEJ3mMCTVNFpSew35if2uUFz5 xZvH5Sg9q2e84NjYBcnnMkQQG5UY/e1MCKn4baA080wsNafIDklO3wckxCY5+qlP/F6M f2lQ== X-Received: by 10.15.61.137 with SMTP id i9mr1105167eex.50.1383072483674; Tue, 29 Oct 2013 11:48:03 -0700 (PDT) Received: from [10.0.0.11] ([88.151.75.13]) by mx.google.com with ESMTPSA id w6sm73522157eeo.12.2013.10.29.11.48.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Oct 2013 11:48:02 -0700 (PDT) Message-ID: <527002DD.1040509@gmail.com> Date: Tue, 29 Oct 2013 19:47:57 +0100 From: Jarry User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] How can I fix wrong boot order? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 5d586547-9c41-416b-9704-3c35518c37e2 X-Archives-Hash: 31806b00ccde035a5f2fa255f7f780dc Hi Gentoo-users, I noticed strange message during boot-up of one of my servers: ______________________________________________________________ * Bringing up interface lo * 127.0.0.1/8 ... [ok] * Adding routes * 127.0.0.0/8 via 127.0.0.1 ... [ok] * Activating additional swap space ... [ok] * setting up tmpfiles.d entries ... [ok] * Initializing random number generator ... [ok] INIT: Entering runlevel: 3 * Starting clamd ... [ok] * Starting freshclam ... [ok] * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) [ok] * Starting syslog-ng... Connection failed; fd='10', server='AF_INET(10.0.0.171:514)', local='AF_INET(0.0.0.0:0)', error='Network is unreachable (101)' Initiating connection failed, reconnecting: time_reopen='60' * Loading iptables state and starting firewall ... [ok] * Bringing up interface enp3s0 * 10.0.0.174 ... [ok] * Adding routes * default via 10.0.0.138 ... [ok] * Starting saslauthd ... [ok] * Starting dovecot ... [ok] * Starting monit ... [ok] ______________________________________________________________ As you see, syslog-ng can not open conection to remote syslog collector. Reason seems to be quite clear: at the time when syslog-ng starts, enp3s0 interface is not up (only loopback). I do not know how this happened, but I think it has something to do with either sendmail, clamav, or dovecot. This is boot-up of my other server (syslog-collector) where neither sendmail nor clamav is installed. As you can see, boot-up order is correct (network interface before syslog-ng): ______________________________________________________________ * Bringing up interface lo * 127.0.0.1/8 ... [ok] * Adding routes * 127.0.0.0/8 via 127.0.0.1 ... [ok] * Activating additional swap space ... [ok] * setting up tmpfiles.d entries ... [ok] * Initializing random number generator ... [ok] INIT: Entering runlevel: 3 * Loading iptables state and starting firewall ... [ok] * Starting monit ... [ok] * Bringing up interface enp3s0 * 10.0.0.171 ... [ok] * Adding routes * default via 10.0.0.138 ... [ok] * Mounting network filesystems ... [ok] * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) [ok] * Starting syslog-ng... [ok] * Starting sshd ... [ok] * Starting vixie-cron ... [ok] ______________________________________________________________ So how can I fix it on the 1st server, so that syslog-ng starts after network interface is up? Jarry -- _______________________________________________________________ This mailbox accepts e-mails only from selected mailing-lists! Everything else is considered to be spam and therefore deleted.