We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0a8f85 commit 30801f3Copy full SHA for 30801f3
fluent-plugin-systemd.gemspec
@@ -22,5 +22,5 @@ Gem::Specification.new do |spec|
22
spec.add_development_dependency "test-unit", "~> 2.5"
23
24
spec.add_runtime_dependency "fluentd", "~> 0.12"
25
- spec.add_runtime_dependency "systemd-journal", "~> 1.2"
+ spec.add_runtime_dependency "systemd-journal", "~> 1.3"
26
end
lib/fluent/plugin/in_systemd.rb
@@ -35,6 +35,7 @@ def shutdown
35
private
36
37
def init_journal
38
+ @journal.close if @journal # rubocop:disable Style/SafeNavigation
39
@journal = Systemd::Journal.new(path: @path)
40
# make sure initial call to wait doesn't return :invalidate
41
# see https://github.com/ledbettj/systemd-journal/issues/70
0 commit comments