X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=xenserver%2Fetc_init.d_openvswitch;h=64ad52ce1157392669b56dbe6015d2da6bcbc576;hb=b2b4c70c4d337a2943b1c530557f64c4cc45d63a;hp=3aacb57c656a7e2d13662bbd738b77c3018306ff;hpb=e51b8b03f936960d097fc642cb694d119829c054;p=sliver-openvswitch.git diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index 3aacb57c6..64ad52ce1 100755 --- a/xenserver/etc_init.d_openvswitch +++ b/xenserver/etc_init.d_openvswitch @@ -437,6 +437,14 @@ function force_reload_kmod { start action "Restore interface configuration from $script" $script + + # Restart the high-availability daemon if it is running. Otherwise + # it loses its heartbeat and reboots the system after a few minutes. + if pidof xhad >/dev/null && test -e /etc/xensource/xhad.conf; then + PATH=$PATH:/opt/xensource/xha + action "Stopping HA daemon" ha_stop_daemon + action "Starting HA daemon" ha_start_daemon + fi } case "$1" in