All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/rsyslog: install default service file
@ 2021-04-14 21:09 Sam Voss
  2021-04-19 21:21 ` Thomas Petazzoni
  2021-04-26 10:02 ` Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: Sam Voss @ 2021-04-14 21:09 UTC (permalink / raw)
  To: buildroot

As of v8.2008 rsyslog no longer provides a default service file, and now
suggests using the platform suggested defaults. For Buildroot, install
the Debian service file which has been added in the same version,
however is not included in the official release.

Upstream commit which adds this service file:
https://github.com/rsyslog/rsyslog/commit/cfd07503ba055100a84d75d1a78a5c6cceb9fdab

Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>
---
 package/rsyslog/rsyslog.mk      |  5 +++++
 package/rsyslog/rsyslog.service | 19 +++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 package/rsyslog/rsyslog.service

diff --git a/package/rsyslog/rsyslog.mk b/package/rsyslog/rsyslog.mk
index d20a13dbdd..62ef756f9d 100644
--- a/package/rsyslog/rsyslog.mk
+++ b/package/rsyslog/rsyslog.mk
@@ -89,6 +89,11 @@ RSYSLOG_CONF_OPTS += \
 	--disable-omjournal
 endif
 
+define RSYSLOG_INSTALL_INIT_SYSTEMD
+	$(INSTALL) -m 0755 -D package/rsyslog/rsyslog.service \
+		$(TARGET_DIR)/usr/lib/systemd/system/rsyslog.service
+endef
+
 define RSYSLOG_INSTALL_INIT_SYSV
 	$(INSTALL) -m 0755 -D package/rsyslog/S01rsyslogd \
 		$(TARGET_DIR)/etc/init.d/S01rsyslogd
diff --git a/package/rsyslog/rsyslog.service b/package/rsyslog/rsyslog.service
new file mode 100644
index 0000000000..40c7c2202d
--- /dev/null
+++ b/package/rsyslog/rsyslog.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=System Logging Service
+Requires=syslog.socket
+Documentation=man:rsyslogd(8)
+Documentation=https://www.rsyslog.com/doc/
+
+[Service]
+Type=notify
+ExecStart=/usr/sbin/rsyslogd -n -iNONE
+StandardOutput=null
+Restart=on-failure
+
+# Increase the default a bit in order to allow many simultaneous
+# files to be monitored, we might need a lot of fds.
+LimitNOFILE=16384
+
+[Install]
+WantedBy=multi-user.target
+Alias=syslog.service
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] package/rsyslog: install default service file
  2021-04-14 21:09 [Buildroot] [PATCH] package/rsyslog: install default service file Sam Voss
@ 2021-04-19 21:21 ` Thomas Petazzoni
  2021-04-26 10:02 ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2021-04-19 21:21 UTC (permalink / raw)
  To: buildroot

On Wed, 14 Apr 2021 16:09:27 -0500
Sam Voss <sam.voss@rockwellcollins.com> wrote:

> As of v8.2008 rsyslog no longer provides a default service file, and now
> suggests using the platform suggested defaults. For Buildroot, install
> the Debian service file which has been added in the same version,
> however is not included in the official release.
> 
> Upstream commit which adds this service file:
> https://github.com/rsyslog/rsyslog/commit/cfd07503ba055100a84d75d1a78a5c6cceb9fdab
> 
> Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>
> ---
>  package/rsyslog/rsyslog.mk      |  5 +++++
>  package/rsyslog/rsyslog.service | 19 +++++++++++++++++++
>  2 files changed, 24 insertions(+)
>  create mode 100644 package/rsyslog/rsyslog.service

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] package/rsyslog: install default service file
  2021-04-14 21:09 [Buildroot] [PATCH] package/rsyslog: install default service file Sam Voss
  2021-04-19 21:21 ` Thomas Petazzoni
@ 2021-04-26 10:02 ` Peter Korsgaard
  2021-04-26 10:03   ` Peter Korsgaard
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2021-04-26 10:02 UTC (permalink / raw)
  To: buildroot

>>>>> "Sam" == Sam Voss <sam.voss@rockwellcollins.com> writes:

 > As of v8.2008 rsyslog no longer provides a default service file, and now
 > suggests using the platform suggested defaults. For Buildroot, install
 > the Debian service file which has been added in the same version,
 > however is not included in the official release.

 > Upstream commit which adds this service file:
 > https://github.com/rsyslog/rsyslog/commit/cfd07503ba055100a84d75d1a78a5c6cceb9fdab

 > Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] package/rsyslog: install default service file
  2021-04-26 10:02 ` Peter Korsgaard
@ 2021-04-26 10:03   ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2021-04-26 10:03 UTC (permalink / raw)
  To: buildroot

>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

>>>>> "Sam" == Sam Voss <sam.voss@rockwellcollins.com> writes:
 >> As of v8.2008 rsyslog no longer provides a default service file, and now
 >> suggests using the platform suggested defaults. For Buildroot, install
 >> the Debian service file which has been added in the same version,
 >> however is not included in the official release.

 >> Upstream commit which adds this service file:
 >> https://github.com/rsyslog/rsyslog/commit/cfd07503ba055100a84d75d1a78a5c6cceb9fdab

 >> Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>

 > Committed, thanks.

(to 2021.02.x I mean).

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-26 10:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14 21:09 [Buildroot] [PATCH] package/rsyslog: install default service file Sam Voss
2021-04-19 21:21 ` Thomas Petazzoni
2021-04-26 10:02 ` Peter Korsgaard
2021-04-26 10:03   ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.