From: Thierry Bultel Date: Fri, 12 Dec 2014 22:39:56 +0000 (+0100) Subject: rsyslog: install systemd services links X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e86a2fcc6a99c338436cd921905a0c34d435662;p=buildroot.git rsyslog: install systemd services links Signed-off-by: Thierry Bultel Signed-off-by: Thomas Petazzoni --- diff --git a/package/rsyslog/rsyslog.mk b/package/rsyslog/rsyslog.mk index 6b72bb515c..688a335694 100644 --- a/package/rsyslog/rsyslog.mk +++ b/package/rsyslog/rsyslog.mk @@ -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