Repository: incubator-eagle Updated Branches: refs/heads/master 0fd2d7774 -> 7ad45fd1b
[MINOR] Fix eagle-server.sh log redirec bug Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/7ad45fd1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/7ad45fd1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/7ad45fd1 Branch: refs/heads/master Commit: 7ad45fd1bd63c76b294faecc7e13bad8c8145799 Parents: 0fd2d77 Author: Hao Chen <h...@apache.org> Authored: Sat Dec 10 01:20:50 2016 +0800 Committer: Hao Chen <h...@apache.org> Committed: Sat Dec 10 01:20:50 2016 +0800 ---------------------------------------------------------------------- eagle-server-assembly/src/main/bin/eagle-server.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/7ad45fd1/eagle-server-assembly/src/main/bin/eagle-server.sh ---------------------------------------------------------------------- diff --git a/eagle-server-assembly/src/main/bin/eagle-server.sh b/eagle-server-assembly/src/main/bin/eagle-server.sh index 975d2a7..4199234 100644 --- a/eagle-server-assembly/src/main/bin/eagle-server.sh +++ b/eagle-server-assembly/src/main/bin/eagle-server.sh @@ -59,13 +59,17 @@ PROGRAM="java $JVM_OPTS -cp $EAGLE_CLASSPATH org.apache.eagle.server.ServerMain cd $DIR/../ if [ ! -e ${DIR}/../run ]; then - mkdir ${DIR}/../run; + mkdir ${DIR}/../run +fi + +if [ ! -e ${DIR}/../log ]; then + mkdir ${DIR}/../log fi start() { echo "Starting eagle service ..." echo ${PROGRAM} - nohup ${PROGRAM} 1> ${DIR}/eagle-server.out & echo $! > $PIDFILE + nohup ${PROGRAM} 1> ${DIR}/../log/eagle-server.out 2>&1 & echo $! > $PIDFILE if [ $? != 0 ];then echo "Error: failed starting" exit 1 @@ -129,4 +133,4 @@ if [ $? != 0 ]; then exit 1 fi -exit 0 \ No newline at end of file +exit 0