Fix for Logs for MCF agent not properly handled
@@ -15,7 +15,7 @@ OPTIONS=$(cat "$OPTIONSFILE")
cmd_start() {
echo "Starting MCF Agent ..."
./executecommand.sh org.apache.manifoldcf.core.LockClean
- nohup "$JAVA_HOME/bin/java" $OPTIONS org.apache.manifoldcf.agents.AgentRun &
+ nohup "$JAVA_HOME/bin/java" $OPTIONS org.apache.manifoldcf.agents.AgentRun > /opt/datafari/logs/mcf-agent.log &
echo $! > $MCF_PID_FILE
echo "MCF Agent started with PID $(cat $MCF_PID_FILE)"
return 0
