- Grab the pidfile before we daemonize so we can report pid lock errors

promptly.
This commit is contained in:
Jordan Sissel 2010-02-19 06:58:47 +00:00
parent f079e8e2be
commit 44d8eb4143

View file

@ -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