summarylogtreecommitdiffstats
path: root/elasticsearch-keystore@.service
diff options
context:
space:
mode:
authorEric Liu2019-03-26 21:13:10 -0400
committerEric Liu2019-03-26 21:13:10 -0400
commita8872da7c4c8b703ef50cddab223f94fdef04f65 (patch)
treef9bd00b27ab088960bb310d7e80c9c5d816caf43 /elasticsearch-keystore@.service
downloadaur-a8872da7c4c8b703ef50cddab223f94fdef04f65.tar.gz
initial commit for ELK with xpack
Diffstat (limited to 'elasticsearch-keystore@.service')
-rw-r--r--elasticsearch-keystore@.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/elasticsearch-keystore@.service b/elasticsearch-keystore@.service
new file mode 100644
index 000000000000..039e2123f4ca
--- /dev/null
+++ b/elasticsearch-keystore@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Elasticsearch Keystore Generation
+ConditionPathExists=|!/etc/elasticsearch/%I/elasticsearch.keystore
+
+[Service]
+Type=oneshot
+Group=elasticsearch
+UMask=0007
+Environment=ES_PATH_CONF=/etc/elasticsearch/%I
+ExecStart=/usr/share/elasticsearch/bin/elasticsearch-keystore create
+RemainAfterExit=yes