summaryrefslogtreecommitdiff
path: root/xenserver/etc_init.d_openvswitch
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2010-09-17 16:05:04 -0700
committerEthan Jackson <ethan@nicira.com>2010-09-21 13:37:03 -0700
commit97685b902d63f48bdc9f63e5458a1ac5ae59b0b5 (patch)
treec6bbd45d1ca830585839d287aa406868577e490c /xenserver/etc_init.d_openvswitch
parent5fa555b3cf6030bbeda1bbcf169d514f3ae1a077 (diff)
downloadopenvswitch-97685b902d63f48bdc9f63e5458a1ac5ae59b0b5.tar.gz
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.
Diffstat (limited to 'xenserver/etc_init.d_openvswitch')
-rwxr-xr-xxenserver/etc_init.d_openvswitch12
1 files changed, 10 insertions, 2 deletions
diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch
index 68079fcf5..282765323 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