diff options
Diffstat (limited to 'community/elasticsearch/elasticsearch@.service')
-rw-r--r-- | community/elasticsearch/elasticsearch@.service | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/community/elasticsearch/elasticsearch@.service b/community/elasticsearch/elasticsearch@.service new file mode 100644 index 000000000..b2940c91d --- /dev/null +++ b/community/elasticsearch/elasticsearch@.service @@ -0,0 +1,13 @@ +[Unit] +Description=ElasticSearch +After=network.target + +[Service] +User=elasticsearch +Type=forking +PIDFile=/run/elasticsearch/%I.pid +ExecStart=/usr/bin/elasticsearch -p /run/elasticsearch/%I.pid -Des.config=/etc/elasticsearch/%I.yml +Restart=on-failure + +[Install] +WantedBy=multi-user.target |