I installed ELK version 6.3.2 on a centos 7 machine
The issue is when i restart this machine I have no more /var/run/kibana.pid file
Each time i restart the machine I have to do this commands : touch /var/run/kibana.pid chown kibana:kibana /var/run/kibana.pid systemctl restart kibana
Have you some solution to this issue or I have to do a script that execute when my machine boot ?
Is selinux enabled? What does the kibana log show upon trying to start the service exactly? The issue is a permissions one because it is able to delete the file on shutdown before restarting as it owns it
My initial conf at /etc/systemd/system/kibana.service :
[Unit]
Description=Kibana
[Service]
Type=simple
User=kibana
Group=kibana
# Load env vars from /etc/default/ and /etc/sysconfig/ if they exist.
# Prefixing the path with '-' makes it try to load, but if the file doesn't
# exist, it continues onward.
EnvironmentFile=-/etc/default/kibana
EnvironmentFile=-/etc/sysconfig/kibana
ExecStart=/usr/share/kibana/bin/kibana "-c /etc/kibana/kibana.yml"
Restart=always
WorkingDirectory=/
[Install]
WantedBy=multi-user.target
I tried to add a kibana directory and add the two ExecStartPre lines but nothing to do it don't works
Lot of search for nothing I just removed the pid.file: /var/run/kibana.pid from the kibana conf /etc/kibana/kibana.yml and no more problem ^^ don't know why
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.