Skip to contentSkip to conversation

rsyslog: install systemd services links

PATCH New Thierry Bultel 2 participants 2 messages Dec 12, 2014 – Dec 21, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rsyslog: install systemd services links

---
 package/rsyslog/rsyslog.mk | 8 ++++++++
 1 file changed, 8 insertions(+)
package/rsyslog/rsyslog.mk +8 -0
index 6b72bb5..688a335 100644
@@ -43,6 +43,14 @@ define RSYSLOG_INSTALL_INIT_SYSV
 		$(TARGET_DIR)/etc/init.d/S01rsyslog
 endef
 
+define RSYSLOG_INSTALL_INIT_SYSTEMD
+	ln -sf /lib/systemd/system/rsyslog.service \
+		$(TARGET_DIR)/etc/systemd/system/syslog.service
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+	ln -sf ../syslog.service \
+		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/syslog.service
+endef
+
 define RSYSLOG_INSTALL_CONF
 	$(INSTALL) -m 0644 -D $(@D)/platform/redhat/rsyslog.conf \
 		$(TARGET_DIR)/etc/rsyslog.conf
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 rsyslog: install systemd services links

Dear Thierry Bultel,

Quoted 4 lines · Thierry Bultel
---
 package/rsyslog/rsyslog.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com