From da297a784b56db8bf61a06e447ed2dd3ac913632 Mon Sep 17 00:00:00 2001 From: Andrew Bayer Date: Fri, 22 Jul 2011 20:04:35 +0000 Subject: [PATCH] SQOOP-202. sqoop-metastore should be able to handle missing pid files Signed-off-by: Jonathan Hsieh git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1150034 13f79535-47bb-0310-9956-ffa450edef68 --- bin/stop-metastore.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/stop-metastore.sh b/bin/stop-metastore.sh index 1ddc9132..988e8c49 100755 --- a/bin/stop-metastore.sh +++ b/bin/stop-metastore.sh @@ -55,10 +55,4 @@ fi # Remove the pidfile lock. -if [ ! -e "$pidfilename" ]; then - echo "No pid file $pidfilename" - exit 0 -fi - -rm "$pidfilename" - +rm -f "$pidfilename"