From: Ethan Jackson Date: Fri, 17 Sep 2010 23:05:04 +0000 (-0700) Subject: xenserver: reload sends SIGHUP to monitor-external-ids X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97685b902d63f48bdc9f63e5458a1ac5ae59b0b5;p=openvswitch xenserver: reload sends SIGHUP to monitor-external-ids When the init script's reload function is called it will send a SIGHUP to monitor-external-ids. This will cause monitor-external-ids to re-generate everything. Feature #3668. --- diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index 68079fcf..28276532 100755 --- a/xenserver/etc_init.d_openvswitch +++ b/xenserver/etc_init.d_openvswitch @@ -117,6 +117,12 @@ else monitor_opt= fi +function hup_monitor_external_ids { + if [ -e /var/run/openvswitch/monitor-external-ids.pid ]; then + action "Configuring Open vSwitch external IDs" kill -HUP `cat /var/run/openvswitch/monitor-external-ids.pid` + fi +} + function dp_list { "$dpctl" show | grep '^dp[0-9]\+:' | cut -d':' -f 1 } @@ -380,8 +386,10 @@ case "$1" in restart ;; reload|force-reload) - # Nothing to do--ovs-vswitchd and ovsdb-server keep their configuration - # up-to-date all the time. + # Nothing to do to ovs-vswitchd and ovsdb-server as they keep their + # configuration up-to-date all the time. HUP monitor-external-ids so it + # re-runs. + hup_monitor_external_ids ;; strace-vswitchd) shift