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:
cfd07503ba
Signed-off-by: Sam Voss <sam.voss@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
53f5dd3115
commit
4732b78221
@ -101,6 +101,11 @@ RSYSLOG_CONF_OPTS += \
|
|||||||
--disable-omjournal
|
--disable-omjournal
|
||||||
endif
|
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
|
define RSYSLOG_INSTALL_INIT_SYSV
|
||||||
$(INSTALL) -m 0755 -D package/rsyslog/S01rsyslogd \
|
$(INSTALL) -m 0755 -D package/rsyslog/S01rsyslogd \
|
||||||
$(TARGET_DIR)/etc/init.d/S01rsyslogd
|
$(TARGET_DIR)/etc/init.d/S01rsyslogd
|
||||||
|
19
package/rsyslog/rsyslog.service
Normal file
19
package/rsyslog/rsyslog.service
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user