Properly refer to brcompatd pidfile in init script stop option
authorKeith Amidon <keith@nicira.com>
Wed, 29 Apr 2009 16:43:32 +0000 (09:43 -0700)
committerKeith Amidon <keith@nicira.com>
Wed, 29 Apr 2009 19:07:32 +0000 (12:07 -0700)
When the init script attempted to stop brcompatd it was using the
wrong variable name to find the PID file and thus not obtaining a PID
and not stopping brcompatd.

vswitchd/etc/init.d/vswitch

index 3bf3a935f42cd2df57ee295c8fa501bbc9154f0f..b9fd59d173388ff436beb9f3111884cf3040b50e 100755 (executable)
@@ -239,7 +239,7 @@ function stop_vswitchd {
 }
 
 function stop_brcompatd {
-    if [ -f "$BRCOMPAT_PIDFILE" ]; then
+    if [ -f "$BRCOMPATD_PIDFILE" ]; then
         local pid=$(cat "$BRCOMPATD_PIDFILE")
         action "Killing brcompatd ($pid)" kill -TERM $pid
         rm -f "$BRCOMPATD_PIDFILE"