elastic / elastic/logstash

Default initscript does not remove pid file after successful stop

Open
#5,183 4 comments 0 reactions 0 assignees View on GitHub
bug packaging
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
19h 14m
Merged PRs (30d)
63

Description

The SysV initscript:

https://github.com/elastic/logstash/blob/master/pkg/logstash.sysv

Does not clean up the pid file when logstash is stopped. This is unlike the initscript for redhat and debian.
This is causing issues for us as we have puppet ensuring logstash is stopped because we have migrated to filebeats. The problem is as follows:
1. Pid file exists with old logstash pid.
2. Any new process is started which just happens to have the same pid as the old logstash service.
3. Puppet kills the new process

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.