- Create a service file like
myscript.service - Put it in
/lib/systemd/system/ - Reload
systemdusing command:systemctl daemon-reload - Start the service using command:
systemctl start myscript.service - Enable auto start using command:
systemctl enable myscript.service
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
| ##################### ElasticSearch Configuration Example ##################### | |
| # This file contains an overview of various configuration settings, | |
| # targeted at operations staff. Application developers should | |
| # consult the guide at <http://elasticsearch.org/guide>. | |
| # | |
| # The installation procedure is covered at | |
| # <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>. | |
| # | |
| # ElasticSearch comes with reasonable defaults for most settings, |