From: Keith Amidon Date: Wed, 29 Apr 2009 16:43:32 +0000 (-0700) Subject: Properly refer to brcompatd pidfile in init script stop option X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e596bfb0196c5a87b1c76320ff471a58699e9c3;p=openvswitch Properly refer to brcompatd pidfile in init script stop option 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. --- diff --git a/vswitchd/etc/init.d/vswitch b/vswitchd/etc/init.d/vswitch index 3bf3a935..b9fd59d1 100755 --- a/vswitchd/etc/init.d/vswitch +++ b/vswitchd/etc/init.d/vswitch @@ -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"