fluent-plugin-systemd 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -11
- data/lib/fluent/plugin/in_systemd.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 194ee210390aeeb11282e5d7691bb4694d1978fd760abc8eb1ef078864ecc362
|
4
|
+
data.tar.gz: 8ccbbcff3e50c691a36f6fdaf66122882af8daa0201ff137218aa28018e31f84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39823bce21570d0b8721e7427589a6b85f811f70d79e9a61b959e6408fff607d73786e1e2d431f912d79892fcf41c892cb4dd6d67ba2a26f9b923f747d2beb05
|
7
|
+
data.tar.gz: 12355bccdcec5a37420a50f81e295c3778b233ecba77748bf88fcbe4c9d042d519550a26f9143ad98401ff541c1810bceefe0b5ee41f9e196f2c42323e1662d6
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# systemd plugin for [Fluentd](http://github.com/fluent/fluentd)
|
2
2
|
|
3
|
-
[![Build Status](https://
|
3
|
+
[![Build Status](https://github.com/fluent-plugin-systemd/fluent-plugin-systemd/actions/workflows/ci.yml/badge.svg)](https://github.com/fluent-plugin-systemd/fluent-plugin-systemd/actions/workflows/ci.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/5c773a4c1c6a6964fa4b/maintainability)](https://codeclimate.com/github/fluent-plugin-systemd/fluent-plugin-systemd/maintainability) [![Gem Version](https://badge.fury.io/rb/fluent-plugin-systemd.svg)](https://rubygems.org/gems/fluent-plugin-systemd)
|
4
4
|
|
5
5
|
## Overview
|
6
6
|
|
@@ -9,11 +9,8 @@
|
|
9
9
|
|
10
10
|
## Support
|
11
11
|
|
12
|
-
[![Fluentd Slack](http://slack.fluentd.org/badge.svg)](http://slack.fluentd.org/)
|
13
|
-
|
14
12
|
Join the #plugin-systemd channel on the [Fluentd Slack](http://slack.fluentd.org/)
|
15
13
|
|
16
|
-
|
17
14
|
## Requirements
|
18
15
|
|
19
16
|
|fluent-plugin-systemd|fluentd|td-agent|ruby|
|
@@ -253,14 +250,16 @@ We have adopted the [Contributor Covenant](CODE_OF_CONDUCT.md) and thus expect a
|
|
253
250
|
|
254
251
|
Many thanks to our fantastic contributors
|
255
252
|
|
256
|
-
* [Hiroshi Hatake](https://github.com/cosmo0920)
|
257
253
|
* [Erik Maciejewski](https://github.com/emacski)
|
258
|
-
* [
|
259
|
-
* [
|
260
|
-
* [Mike Kaplinskiy](https://github.com/mikekap)
|
261
|
-
* [neko-neko](https://github.com/neko-neko)
|
262
|
-
* [Sadayuki Furuhashi](https://github.com/frsyuki)
|
254
|
+
* [Ernie Hershey](https://github.com/ehershey)
|
255
|
+
* [Hiroshi Hatake](https://github.com/cosmo0920)
|
263
256
|
* [Jesus Rafael Carrillo](https://github.com/jescarri)
|
257
|
+
* [Joel Gerber](https://github.com/Jitsusama)
|
264
258
|
* [John Thomas Wile II](https://github.com/jtwile2)
|
265
259
|
* [Kazuhiro Suzuki](https://github.com/ksauzz)
|
266
|
-
* [
|
260
|
+
* [Marius Grigoriu](https://github.com/mariusgrigoriu)
|
261
|
+
* [Masahiro Nakagawa](https://github.com/repeatedly)
|
262
|
+
* [Mike Kaplinskiy](https://github.com/mikekap)
|
263
|
+
* [Richard Megginson](https://github.com/richm)
|
264
|
+
* [Sadayuki Furuhashi](https://github.com/frsyuki)
|
265
|
+
* [Seiichi Nishikata](https://github.com/neko-neko)
|
@@ -57,9 +57,15 @@ module Fluent
|
|
57
57
|
|
58
58
|
def start
|
59
59
|
super
|
60
|
+
@running = true
|
60
61
|
timer_execute(:in_systemd_emit_worker, 1, &method(:run))
|
61
62
|
end
|
62
63
|
|
64
|
+
def shutdown
|
65
|
+
@running = false
|
66
|
+
super
|
67
|
+
end
|
68
|
+
|
63
69
|
private
|
64
70
|
|
65
71
|
def init_journal
|
@@ -131,7 +137,7 @@ module Fluent
|
|
131
137
|
end
|
132
138
|
|
133
139
|
def watch(&block)
|
134
|
-
yield_current_entry(&block) while @journal.move_next
|
140
|
+
yield_current_entry(&block) while @running && @journal.move_next
|
135
141
|
rescue Systemd::JournalError => e
|
136
142
|
log.warn("Error moving to next Journal entry: #{e.class}: #{e.message}")
|
137
143
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-systemd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ed Robinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|