Start elasticsearch manually
# Add the following line to /etc/init.d/elasticsearch, the command for starting
# elasticsearch manually will be printed out in the console when running
# sudo service elasticsearch start
# Start Daemon
log_daemon_msg "sudo -u $ES_USER $DAEMON $DAEMON_OPTS" # Add this line
start-stop-daemon --start -b --user "$ES_USER" -c "$ES_USER" --pidfile "$PID_FILE" --exec $DAEMON -- $DAEMON_OPTS
log_end_msg $?