summaryrefslogtreecommitdiff
path: root/src/run
diff options
context:
space:
mode:
author <philippe colliot>2015-08-07 11:54:49 +0200
committer <philippe colliot>2015-08-07 11:54:49 +0200
commitcac8a2327763b6d5a9c6a9d07b06895c8a4f4374 (patch)
tree51ceb08be145b5e412c686c0d64963f067022638 /src/run
parentc73136aa10e4c140ec777a93a8bbd2d60eb1faa6 (diff)
downloadnavigation-cac8a2327763b6d5a9c6a9d07b06895c8a4f4374.tar.gz
Alignment with navigation version, clean ambd remaining process before
running FSA
Diffstat (limited to 'src/run')
-rwxr-xr-xsrc/run7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/run b/src/run
index 9eeff11..f84a00d 100755
--- a/src/run
+++ b/src/run
@@ -223,6 +223,13 @@ then
exit 1
fi
+# check and kill remaining ambd process
+ambd_process_id=$(pidof ambd)
+if [ -n $ambd_process_id ]
+then
+ kill -9 $ambd_process_id
+fi
+
trap "terminate" EXIT INT
set -e #exit on error now