Browse Source

[Fix-7885][Deploy] Output log should under logs/ directory (#7960)

* fix bug_7885

* fix bug_7885

* fix bug_7885

* fix bug_7885
3.0.0/version-upgrade
xiangzihao 3 years ago committed by GitHub
parent
commit
2cf609ae61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      script/dolphinscheduler-daemon.sh

13
script/dolphinscheduler-daemon.sh

@ -47,23 +47,22 @@ if [ ! -d "$DOLPHINSCHEDULER_LOG_DIR" ]; then
mkdir $DOLPHINSCHEDULER_LOG_DIR
fi
log=$DOLPHINSCHEDULER_HOME/$command-$HOSTNAME.out
pid=$DOLPHINSCHEDULER_HOME/$command/pid
cd $DOLPHINSCHEDULER_HOME/$command
if [ "$command" = "api-server" ]; then
:
log=$DOLPHINSCHEDULER_HOME/api-server/logs/$command-$HOSTNAME.out
elif [ "$command" = "master-server" ]; then
:
log=$DOLPHINSCHEDULER_HOME/master-server/logs/$command-$HOSTNAME.out
elif [ "$command" = "worker-server" ]; then
:
log=$DOLPHINSCHEDULER_HOME/worker-server/logs/$command-$HOSTNAME.out
elif [ "$command" = "alert-server" ]; then
:
log=$DOLPHINSCHEDULER_HOME/alert-server/logs/$command-$HOSTNAME.out
elif [ "$command" = "standalone-server" ]; then
:
log=$DOLPHINSCHEDULER_HOME/standalone-server/logs/$command-$HOSTNAME.out
elif [ "$command" = "python-gateway-server" ]; then
:
log=$DOLPHINSCHEDULER_HOME/python-gateway-server/logs/$command-$HOSTNAME.out
else
echo "Error: No command named '$command' was found."
exit 1

Loading…
Cancel
Save