Skip to content

Commit 7a860e5

Browse files
authored
Fix openmetadata-server-start.sh can't start in daemon (#20405)
1 parent bf9da10 commit 7a860e5

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

bin/openmetadata-server-start.sh

+18-13
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,24 @@ fi
5050

5151

5252
COMMAND=$1
53-
case $COMMAND in
54-
-name)
55-
DAEMON_NAME=$2
56-
CONSOLE_OUTPUT_FILE=$LOG_DIR/$DAEMON_NAME.out
57-
shift 2
58-
;;
59-
-daemon)
60-
DAEMON_MODE=true
61-
shift
62-
;;
63-
*)
64-
;;
65-
esac
53+
while [ "$COMMAND" != "" ]; do
54+
case $COMMAND in
55+
-name)
56+
DAEMON_NAME=$2
57+
shift 2
58+
;;
59+
-daemon)
60+
DAEMON_NAME=OpenMetadataServer
61+
DAEMON_MODE=true
62+
shift
63+
;;
64+
*)
65+
break
66+
;;
67+
esac
68+
COMMAND=$1
69+
done
70+
CONSOLE_OUTPUT_FILE=$LOG_DIR/$DAEMON_NAME.out
6671

6772
# Which java to use
6873
if [ -z "$JAVA_HOME" ]; then

0 commit comments

Comments
 (0)