From 7c16313f11e3953f3fe4dbf544f2d36f58d14138 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sun, 29 Jun 2014 13:11:44 +0200 Subject: networkd/sd-dhcp-server: only start dhcp server when necessary --- src/network/networkd-link.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/network') diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 9296a594db..5527489364 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -307,7 +307,8 @@ static int link_enter_configured(Link *link) { assert(link->network); assert(link->state == LINK_STATE_SETTING_ROUTES); - if (link->network->dhcp_server) { + if (link->network->dhcp_server && + !sd_dhcp_server_is_running(link->dhcp_server)) { struct in_addr pool_start; Address *address; -- cgit v1.2.3-54-g00ecf