Skip to content

Instantly share code, notes, and snippets.

@buithehoa
Last active March 18, 2016 03:05
Show Gist options
  • Save buithehoa/f30a5100578f3b628551 to your computer and use it in GitHub Desktop.
Save buithehoa/f30a5100578f3b628551 to your computer and use it in GitHub Desktop.
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 $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment