mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 08:47:06 +02:00
Fix error if pidfile exists and process not exists
This commit is contained in:
parent
ebcb12285f
commit
264e71107d
@ -33,7 +33,12 @@ class Fluentd
|
|||||||
end
|
end
|
||||||
|
|
||||||
def running?
|
def running?
|
||||||
pid && Process.kill(0, pid)
|
begin
|
||||||
|
pid && Process.kill(0, pid)
|
||||||
|
rescue Errno::ESRCH
|
||||||
|
File.unlink(pid_file) # no needed any more
|
||||||
|
false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def log
|
def log
|
||||||
|
Loading…
Reference in New Issue
Block a user