When Kibana starts and elasticsearch is not available, PID of Kibana's process is not written into file. It appears there only after connection if available. This complicates creation of Kibana init.d script (mainly stop function) that must detect PID itself instead of going to pid file. One cannot simply call killproc -p $pidfile