Skip to contentSkip to conversation

package/rsyslog: install default service file

PATCH New Sam Voss 3 participants 4 messages Apr 14, 2021 – Apr 26, 2021

lore
Share & tools
lore

Sam Voss

author
#0 lore raw

PATCH 1/1 package/rsyslog: install default service file

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

---
 package/rsyslog/rsyslog.mk      |  5 +++++
 package/rsyslog/rsyslog.service | 19 +++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 package/rsyslog/rsyslog.service
package/rsyslog/rsyslog.mk +5 -0
index d20a13dbdd..62ef756f9d 100644
@@ -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
package/rsyslog/rsyslog.service new file +19 -0
new file mode 100644
index 0000000000..40c7c2202d
@@ -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
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 package/rsyslog: install default service file

Quoted 8 lines · On Wed, 14 Apr 2021 16:09:27 -0500 Sam Voss <[email protected]>…

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

Quoted 6 lines
---
 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

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/rsyslog: install default service file

In reply to Sam Voss
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sam" == Sam Voss <[email protected]> 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

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/1 package/rsyslog: install default service file

Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

"Peter" == Peter Korsgaard <[email protected]> writes:

"Sam" == Sam Voss <[email protected]> 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.

Quoted 6 lines
Quoted 4 lines

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

Committed, thanks.

(to 2021.02.x I mean).

Signature · 1 line
Bye, Peter Korsgaard