You are not logged in.

#1 2012-10-11 17:08:34

mrechte
Member
Registered: 2011-05-04
Posts: 41

systemd / services start but do not listen to interfaces

Hello,

In the course of migrating from initscripts to systemd (mixed systemd/sysvinit/initscripts), I am facing a strange behaviour with some services: squid, bind (named), dhcpd which start normally but do not listen to the useful interface. For instance, for named, netsat does not show  192.168.42.2:53 (which is is my LAN interface), despite the process is running (systemd status named). It seems that with systemd there is a change to the way available interfaces are reported to the services (for those services, I have not explicitly configured the interface to listen to).

If I revert back to initscripts only (removing  init=/usr/lib/systemd/systemd from the kernel argument) everything is OK.

I am not running NetworkManager (relevant ?), my rc.conf is clean apart that I am still using the deprecated syntax (I need a bridge interface that NetworkManager cannot handle).

eth0="dhcp"
eth1="eth1 promisc"
br1="br1 192.168.42.2 netmask 255.255.255.0 broadcast 192.168.42.255"
INTERFACES=(eth0 eth1 br1)

Thanks for any help.

Offline

#2 2012-10-12 15:34:09

mrechte
Member
Registered: 2011-05-04
Posts: 41

Re: systemd / services start but do not listen to interfaces

I found the cause of the problem: legacy network service starts too late, after some other network daemons which do not see yet the interfaces.

I switched to netcfg and dropped network.

Seems to be OK now.

Offline

#3 2012-10-12 19:16:28

oboedad55
Member
From: Baku
Registered: 2011-04-05
Posts: 392

Re: systemd / services start but do not listen to interfaces

mrechte wrote:

I found the cause of the problem: legacy network service starts too late, after some other network daemons which do not see yet the interfaces.

I switched to netcfg and dropped network.

Seems to be OK now.

Glad you found the problem. Would you please edit your first post and mark as "Solved" so others searching for this will see it?


Registered Linux user #436067

Offline

Board footer

Powered by FluxBB