---
projectroot/lib/systemd/system/crond.service | 11 +++++++++++
rules/busybox.make | 7 +++++++
3 files changed, 24 insertions(+)
create mode 100644 projectroot/lib/systemd/system/crond.service
diff --git a/projectroot/lib/systemd/system/crond.service b/projectroot/lib/systemd/system/crond.service
new file mode 100644
index 0000000..b650ae5
--- /dev/null
+++ b/projectroot/lib/systemd/system/crond.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Cron Daemon
+After=syslog.service
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/crond -b
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
index 7a41e7c..7bcdc94 100644
@@ -90,6 +90,12 @@ config BUSYBOX_TELNETD_SYSTEMD_UNIT
depends on BUSYBOX_TELNETD && SYSTEMD
prompt "telnetd systemd service files"
+config BUSYBOX_CROND_SYSTEMD_UNIT
+ bool
+ default y
+ depends on BUSYBOX_CROND && SYSTEMD
+ prompt "crond systemd service files"
+
comment "---"
source "config/busybox/Config.in"
diff --git a/rules/busybox.make b/rules/busybox.make
index 60191c2..d2c9990 100644
--- a/rules/busybox.make
+++ b/rules/busybox.make
@@ -224,6 +224,13 @@ ifdef PTXCONF_BUSYBOX_TELNETD_SYSTEMD_UNIT
/lib/systemd/system/sockets.target.wants/telnetd.socket)
endif
+ifdef PTXCONF_BUSYBOX_CROND_SYSTEMD_UNIT
+ @$(call install_alternative, busybox, 0, 0, 0644, \
+ /lib/systemd/system/crond.service)
+ @$(call install_link, busybox, ../crond.service, \
+ /lib/systemd/system/multi-user.target.wants/crond.service)
+endif
+
# #
# # config files
# #
--
2.0.0