Skip to content

Commit

Permalink
W-14979997: create log directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pdmoineau committed May 21, 2024
1 parent ced67e4 commit e063e66
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions carbonj.service/src/main/docker/files/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ if [ -d /data ]; then
mkdir $SERVICEDIR/work/carbonj-data
mkdir $SERVICEDIR/work/carbonj-tmp
mkdir $SERVICEDIR/work/carbonj-staging
if [ "${ROCKSDB_READONLY}" == "false" ]; then
mkdir $SERVICEDIR/work/log
ln -s $SERVICEDIR/work/log $SERVICEDIR/log
else
mkdir $SERVICEDIR/work/log-readonly
ln -s $SERVICEDIR/work/log-readonly $SERVICEDIR/log
YOURKIT_PROFILER_AGENT_PORT=20002
fi
fi

# Add log directory
if [ "${ROCKSDB_READONLY}" == "true" ]; then
mkdir -p $SERVICEDIR/work/log-readonly
ln -s $SERVICEDIR/work/log-readonly $SERVICEDIR/log
YOURKIT_PROFILER_AGENT_PORT=20002
else
mkdir -p $SERVICEDIR/work/log
ln -s $SERVICEDIR/work/log $SERVICEDIR/log
fi

#set default spring profile if none is given. exclusively used for properties overrides file
Expand Down

0 comments on commit e063e66

Please sign in to comment.