[ovs-dev] [PATCH 2/2] xenserver: Don't delete pidfile when stopping monitor-external-ids

Justin Pettit jpettit at nicira.com
Fri Sep 10 15:02:03 PDT 2010


It's not necessary to explicitly delete the pidfile when stopping
monitor-external-ids through the init script, since the daemon will take
care of that.
---
 xenserver/etc_init.d_openvswitch |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch
index 7b86d4c..0508445 100755
--- a/xenserver/etc_init.d_openvswitch
+++ b/xenserver/etc_init.d_openvswitch
@@ -358,7 +358,6 @@ function stop {
     stop_daemon OVSDB_SERVER "$ovsdb_server"
     if [ -e /var/run/openvswitch/monitor-external-ids.pid ]; then
         kill `cat /var/run/openvswitch/monitor-external-ids.pid`
-        rm /var/run/openvswitch/monitor-external-ids.pid
     fi
     rm -f /var/lock/subsys/openvswitch
 }
-- 
1.7.1





More information about the dev mailing list