diff --git a/misc_systemd_units/mxvlan.service b/misc_systemd_units/mxvlan.service index bd889a8..735d6f5 100644 --- a/misc_systemd_units/mxvlan.service +++ b/misc_systemd_units/mxvlan.service @@ -1,6 +1,6 @@ [Unit] -Wants=network.service -After=network.service +DefaultDependencies=no +After=sysinit.target Before=network.target [Service] @@ -11,5 +11,5 @@ ExecStop=/usr/sbin/mxvlanctl stop ExecReload=/usr/sbin/mxvlanctl restart [Install] -WantedBy=network.target +WantedBy=multi-user.target diff --git a/misc_systemd_units/network.service b/misc_systemd_units/network.service index fac9127..6eba654 100644 --- a/misc_systemd_units/network.service +++ b/misc_systemd_units/network.service @@ -1,5 +1,8 @@ [Unit] DefaultDependencies=no +After=sysinit.target +Before=network.target +Wants=network.target [Service] EnvironmentFile=/etc/local/mxhost.conf @@ -12,4 +15,4 @@ ExecStart=/sbin/ip route add default via 141.14.16.128 ExecStop=/sbin/ip addr del ${MX_IPADDR}/20 dev ${MX_NETDEV} [Install] -WantedBy=network.target +WantedBy=multi-user.target diff --git a/misc_systemd_units/unbound.service b/misc_systemd_units/unbound.service index 3cf1239..f962954 100644 --- a/misc_systemd_units/unbound.service +++ b/misc_systemd_units/unbound.service @@ -1,5 +1,7 @@ [Unit] -After=network.service +DefaultDependencies=no +After=sysinit.target +Before=network.target [Service] Type=forking @@ -8,5 +10,5 @@ ExecStart=/usr/sbin/unbound PIDFile=/var/unbound/unbound.pid [Install] -WantedBy=network.target +WantedBy=multi-user.target