Last active
March 18, 2016 03:05
-
-
Save buithehoa/f30a5100578f3b628551 to your computer and use it in GitHub Desktop.
Start elasticsearch manually
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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