X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=xenserver%2Fetc_init.d_openvswitch;h=b2248b7addbe43c90d13cbbdd177757e6ccc578f;hb=53cf9963ccc60b443d738b31fbb446bc79170693;hp=29f2cf6051c41d7d3e446066db7b83ef5242af93;hpb=f40af195a5b399a6a6cd8d6e91f0c7c2b6e3efc6;p=sliver-openvswitch.git diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index 29f2cf605..b2248b7ad 100755 --- a/xenserver/etc_init.d_openvswitch +++ b/xenserver/etc_init.d_openvswitch @@ -5,7 +5,7 @@ # chkconfig: 2345 09 91 # description: Manage Open vSwitch kernel modules and user-space daemons -# Copyright (C) 2009, 2010, 2011 Nicira Networks, Inc. +# Copyright (C) 2009, 2010, 2011 Nicira, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -120,10 +120,9 @@ case $1 in ;; reload|force-reload) # The main OVS daemons keep up-to-date, but ovs-xapi-sync needs help. - pidfile=/var/run/openvswitch/ovs-xapi-sync.pid - if test -e "$pidfile"; then - pid=`cat "$pidfile"` - action "Configuring Open vSwitch external IDs" kill -HUP $pid + if daemon_is_running ovs-xapi-sync; then + action "Configuring Open vSwitch external IDs" \ + ovs-appctl -t ovs-xapi-sync flush-cache fi ;; status)