diff options
Diffstat (limited to 'elasticsearch5@.service')
-rw-r--r-- | elasticsearch5@.service | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/elasticsearch5@.service b/elasticsearch5@.service new file mode 100644 index 000000000000..21018c6409a7 --- /dev/null +++ b/elasticsearch5@.service @@ -0,0 +1,34 @@ +[Unit] +Description=Elasticsearch +Documentation=http://www.elastic.co +Wants=network.target +After=network.target + +[Service] +Type=forking +RuntimeDirectory=elasticsearch5 +PIDFile=/run/elasticsearch5/%I.pid + +Environment=JAVA_HOME=/usr/lib/jvm/default-runtime +Environment=CONF_DIR=/etc/elasticsearch5/%I +EnvironmentFile=-/etc/default/elasticsearch5 + +WorkingDirectory=/usr/share/elasticsearch5 + +User=elasticsearch +Group=elasticsearch + +ExecStart=/usr/bin/elasticsearch5 -d \ + -p /run/elasticsearch5/%I.pid \ + -E path.conf=${CONF_DIR} + +LimitNOFILE=65536 +LimitMEMLOCK=infinity + +Restart=on-failure +SendSIGKILL=no +TimeoutStopSec=0 +SuccessExitStatus=143 + +[Install] +WantedBy=multi-user.target |