Forked from dragonfire1119/gist:31914c92087468fb728f23be30cc793b
Created
October 8, 2021 10:25
-
-
Save pelligrag/e1e0384f3da02240a70d2870d00bf4af to your computer and use it in GitHub Desktop.
Step to Auto restart elasticsearch services after crash or down:
This file contains 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
1) Edit elasticsearch service unit file using the following command | |
sudo systemctl edit elasticsearch.service | |
This command will create a file | |
/etc/systemd/system/elasticsearch.service.d/override.conf | |
2) Now, add the following lines in the unit file. | |
[Service] | |
Restart=always | |
3) Save the file . | |
ctrl+x > Y > Enter | |
4) Refresh the unit file using command | |
sudo systemctl daemon-reload | |
5) Can check the changes using command | |
sudo systemctl cat elasticsearch.service | |
Link: https://stackoverflow.com/questions/52624720/how-to-auto-restart-elasticsearch-search-once-crashed-on-linux-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment