summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-06-29 13:11:44 +0200
committerTom Gundersen <teg@jklm.no>2014-06-29 15:18:21 +0200
commit7c16313f11e3953f3fe4dbf544f2d36f58d14138 (patch)
tree4c0b33320d2414eac78a58e06960a5321aa58833 /src/network/networkd-link.c
parent8e5edf8d42d3c441e4b09aa1dbbaf2cb605c1328 (diff)
networkd/sd-dhcp-server: only start dhcp server when necessary
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r--src/network/networkd-link.c3
1 files changed, 2 insertions, 1 deletions
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;