From c5a8965557da2f6d949b8bda28eca0785a7d2c3a Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Tue, 5 Jun 2018 12:35:20 -0400 Subject: [PATCH] Switch lxc-dnsmasq to start before lxc The current state of lxc-dnsmasq starts it after the network subsystem is started (but not necessarily up) and it could possibly start after lxc. This changes things to reflect how lxc-net upstream systemd file sets up dependencies[1]. [1]: https://github.com/lxc/lxc/blob/master/config/init/systemd/lxc-net.service.in Change-Id: If378446333dd09e378b3acd297c58fd59ce04789 --- templates/lxc-dnsmasq-systemd-init.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/lxc-dnsmasq-systemd-init.j2 b/templates/lxc-dnsmasq-systemd-init.j2 index a8d4d2a3..4ae2d9d7 100644 --- a/templates/lxc-dnsmasq-systemd-init.j2 +++ b/templates/lxc-dnsmasq-systemd-init.j2 @@ -2,8 +2,8 @@ [Unit] Description=lxc dnsmasq service -After=syslog.target -After=network.target +After=network-online.target +Before=lxc.service [Service] Type=simple