mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- Grab the pidfile before we daemonize so we can report pid lock errors
promptly.
This commit is contained in:
parent
f079e8e2be
commit
44d8eb4143
1 changed files with 1 additions and 1 deletions
|
@ -17,9 +17,9 @@ module LogStash
|
|||
|
||||
def run
|
||||
Thread::abort_on_exception = true
|
||||
grab_pidfile if @pidfile
|
||||
redirect_io
|
||||
daemonize if @daemonize
|
||||
grab_pidfile if @pidfile
|
||||
termination_handler do
|
||||
puts "Default termination signal handler being invoked."
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue