You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
399 B
21 lines
399 B
#! /usr/bin/env bash
|
|
CURDIR=$(cd $(dirname $0); pwd)
|
|
|
|
if [ "X$1" != "X" ]; then
|
|
RUNTIME_ROOT=$1
|
|
else
|
|
RUNTIME_ROOT=${CURDIR}
|
|
fi
|
|
|
|
export KITEX_RUNTIME_ROOT=$RUNTIME_ROOT
|
|
export KITEX_LOG_DIR="$RUNTIME_ROOT/log"
|
|
|
|
if [ ! -d "$KITEX_LOG_DIR/app" ]; then
|
|
mkdir -p "$KITEX_LOG_DIR/app"
|
|
fi
|
|
|
|
if [ ! -d "$KITEX_LOG_DIR/rpc" ]; then
|
|
mkdir -p "$KITEX_LOG_DIR/rpc"
|
|
fi
|
|
|
|
exec "$CURDIR/bin/message"
|
|
|