public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How can I fix wrong boot order?
@ 2013-10-29 18:47 Jarry
  2013-10-29 18:51 ` the
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jarry @ 2013-10-29 18:47 UTC (permalink / raw
  To: gentoo-user

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] How can I fix wrong boot order?
  2013-10-29 18:47 [gentoo-user] How can I fix wrong boot order? Jarry
@ 2013-10-29 18:51 ` the
  2013-10-29 19:31 ` victor romanchuk
  2013-10-30  1:49 ` Dustin C. Hatch
  2 siblings, 0 replies; 5+ messages in thread
From: the @ 2013-10-29 18:51 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/29/13 22:47, Jarry wrote:
> 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?

init script dependencies and strict requirements?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJScAOjAAoJEK64IL1uI2han9UH/2YzpEVxxnKDPdQegpqcRlip
Z4g6fdfHPB8HaYoqJG0L3mPVeNhqFwpAsP/AhT/BLIeDIR6p9G6L19Cx6g5agZ96
sgOLL7On+g4OPSH6W81lgIdPaEfitVSXoYHL/BaMshQ2Qq1K47FwcEH9t1U4Zls1
5Y2qiu6VcJQN/oKV+apGUofhHD+AiA/CXUbBYpAC3AuHBx5EO8qsq9yMMhlMVonF
IMQUCPDHlf64NXgsqyxU/8Vlf6XaRNWiq+OZjsw6PckqXl9M3KFZHwbIJ0np2c1M
U2MPriLkR3DUSESDJw934MSRrj4R//lr42NhbsSc6wB6ifYX6qToNaxiiAy/OSs=
=dpoP
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] How can I fix wrong boot order?
  2013-10-29 18:47 [gentoo-user] How can I fix wrong boot order? Jarry
  2013-10-29 18:51 ` the
@ 2013-10-29 19:31 ` victor romanchuk
  2013-10-30  1:49 ` Dustin C. Hatch
  2 siblings, 0 replies; 5+ messages in thread
From: victor romanchuk @ 2013-10-29 19:31 UTC (permalink / raw
  To: gentoo-user

On 10/29/2013 10:47 PM, Jarry wrote:
> Hi Gentoo-users,
> I noticed strange message during boot-up of one of my servers:
> ______________________________________________________________
>

[snip]

>
> 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.
>

[snip]

> ______________________________________________________________
>
> So how can I fix it on the 1st server, so that syslog-ng starts
> after network interface is up?
>
> Jarry
>

disable explicit syslog-ng service startup from the runlevel (one would start anyway as a dependency)

rc-update del syslog-ng

does the trick

victor



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] How can I fix wrong boot order?
  2013-10-29 18:47 [gentoo-user] How can I fix wrong boot order? Jarry
  2013-10-29 18:51 ` the
  2013-10-29 19:31 ` victor romanchuk
@ 2013-10-30  1:49 ` Dustin C. Hatch
  2013-10-31 17:42   ` Jarry
  2 siblings, 1 reply; 5+ messages in thread
From: Dustin C. Hatch @ 2013-10-30  1:49 UTC (permalink / raw
  To: gentoo-user

On 10/29/2013 13:47, Jarry wrote:
> Hi Gentoo-users,
> I noticed strange message during boot-up of one of my servers:
> ...
> 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):
> ...
> So how can I fix it on the 1st server, so that syslog-ng starts
> after network interface is up?
>
> Jarry
>

I would probably fix this by adding

rc_need="net"

to /etc/conf.d/syslog-ng
-- 
♫Dustin
http://dustin.hatch.name/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] How can I fix wrong boot order?
  2013-10-30  1:49 ` Dustin C. Hatch
@ 2013-10-31 17:42   ` Jarry
  0 siblings, 0 replies; 5+ messages in thread
From: Jarry @ 2013-10-31 17:42 UTC (permalink / raw
  To: gentoo-user

On 30-Oct-13 2:49, Dustin C. Hatch wrote:

>> So how can I fix it on the 1st server, so that syslog-ng starts
>> after network interface is up?
>
> I would probably fix this by adding
> rc_need="net"
> to /etc/conf.d/syslog-ng

That's probably cleanest solution. Thanks, it worked like a charm!
The only thing that remains mystery for me is: why on my other
servers syslog-ng is started after network even without this trick?

Jarry
-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-10-31 17:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29 18:47 [gentoo-user] How can I fix wrong boot order? Jarry
2013-10-29 18:51 ` the
2013-10-29 19:31 ` victor romanchuk
2013-10-30  1:49 ` Dustin C. Hatch
2013-10-31 17:42   ` Jarry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox