aboutsummaryrefslogtreecommitdiff
path: root/package/sysklogd/sysklogd.mk
diff options
context:
space:
mode:
authorGravatar Petr Kulhavy <brain@jikos.cz>2017-09-20 12:21:30 +0200
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2017-09-24 15:52:08 +0200
commit74206149372352dc70deeaf7cd5551a1445a7ad8 (patch)
tree018156c2bbabf5c0314047f349caa89967c31d8b /package/sysklogd/sysklogd.mk
parent0f8163a5ca9a3baa8f2bf02f82acb6e12be9008e (diff)
downloadbuildroot-74206149372352dc70deeaf7cd5551a1445a7ad8.tar.gz
buildroot-74206149372352dc70deeaf7cd5551a1445a7ad8.tar.bz2
package/sysklogd: add systemd services
Sysklogd had only SYSV init scripts. Add systemd service files to start klogd and syslogd. Signed-off-by: Petr Kulhavy <brain@jikos.cz> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'package/sysklogd/sysklogd.mk')
-rw-r--r--package/sysklogd/sysklogd.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/sysklogd/sysklogd.mk b/package/sysklogd/sysklogd.mk
index e1f0c34189..1c8259a9af 100644
--- a/package/sysklogd/sysklogd.mk
+++ b/package/sysklogd/sysklogd.mk
@@ -32,4 +32,16 @@ define SYSKLOGD_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S01logging
endef
+define SYSKLOGD_INSTALL_INIT_SYSTEMD
+ $(INSTALL) -D -m 644 $(SYSKLOGD_PKGDIR)/syslogd.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/syslogd.service
+ $(INSTALL) -D -m 644 $(SYSKLOGD_PKGDIR)/klogd.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/klogd.service
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+ ln -sf ../../../../usr/lib/systemd/system/syslogd.service \
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/syslogd.service
+ ln -sf ../../../usr/lib/systemd/system/syslogd.service \
+ $(TARGET_DIR)/etc/systemd/system/syslog.service
+endef
+
$(eval $(generic-package))