fix pidfile. upgrade elasticsearch