Add link between one-context.service and systemd-networkd.service

also updated 00-network and 05-hostname

One-context.service should be linked to systemd-networkd.service,
tying to do this using the Wants flag.  Additionally since
one-context.service should now run before systemd-networkd.service
it's superfluous to restart the unit, this was edited out of
00-network.  05-hostname was edited to use the hostnameclt, the
echo style can probably be removed.
pull/14/head
Dan Kelleher 9 years ago
parent 50f8d3c91a
commit 497653472a

@ -226,14 +226,5 @@ EOT
done
}
configure_network()
{
gen_network_configuration
systemctl restart systemd-networkd
sleep 2
}
configure_network
gen_network_configuration

@ -9,7 +9,7 @@ function set_hostname() {
echo $NAME > $CONFIG_FILE
hostname $NAME
hostnamectl set-hostname $NAME
}
function get_dns_name() {

@ -4,11 +4,11 @@ Description=Context script for open nebula
# dropped once tuntap is moved to netlink
After=systemd-udevd.service dbus.service network-pre.target systemd-sysusers.service systemd-sysctl.service
Before=systemd-networkd.service
Wants=network.target
Wants=network.target systemd-networkd.service
# On kdbus systems we pull in the busname explicitly, because it
# carries policy that allows the daemon to acquire its name.
Wants=org.freedesktop.network1.busname
Wants=org.freedesktop.network1.busname systemd-networkd.service
After=org.freedesktop.network1.busname
[Service]

Loading…
Cancel
Save