--- /dev/null
+[Unit]
+Description=Kernel Log Daemon
+
+[Service]
+ExecStart=/usr/sbin/klogd -n
+StandardOutput=null
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+WantedBy=syslogd.service
$(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))
--- /dev/null
+[Unit]
+Description=System Logging Service
+Requires=syslog.socket
+Wants=klogd.service
+
+[Service]
+ExecStart=/usr/sbin/syslogd -m 0 -n
+StandardOutput=null
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+Alias=syslog.service