/usr/lib/systemd/system/kibana.service

1
2
3
4
5
6
7
8
9
10
11
[Unit]
Description=Elasticsearch

[Service]
PIDFile=/home/vagrant/kibana-5.1.1-linux-x86_64/kibana.pid
ExecStart=/home/vagrant/kibana-5.1.1-linux-x86_64/bin/kibana
User=vagrant
Restart=always
LimitMEMLOCK=infinity
LimitNOFILE=1048576
LimitNPROC=1048576

/usr/lib/systemd/system/elasticsearch.service

1
2
3
4
5
6
7
8
9
10
11
[Unit]
Description=Elasticsearch

[Service]
PIDFile=/home/vagrant/elasticsearch-rtf/elasticsearch.pid
ExecStart=/home/vagrant/elasticsearch-rtf/bin/elasticsearch
User=vagrant
Restart=always
LimitMEMLOCK=infinity
LimitNOFILE=1048576
LimitNPROC=1048576