summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-10-03 11:14:33 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-10-03 11:14:33 +0100
commit17b8b79287aa605a5f4b4c82254b6313b88f7031 (patch)
treeb3c4a08a2478151716156a7eb5ebd3056052b890
parent9e833f5f2646a2ffb4d897e4dce0524b47060c67 (diff)
downloadbusybox-17b8b79287aa605a5f4b4c82254b6313b88f7031.tar.gz
Add crond service
-rw-r--r--busybox.morph4
-rw-r--r--systemd-units/crond.service.in6
2 files changed, 8 insertions, 2 deletions
diff --git a/busybox.morph b/busybox.morph
index cc65d4400..971f292e4 100644
--- a/busybox.morph
+++ b/busybox.morph
@@ -46,12 +46,12 @@
"sed -e 's/.*CONFIG_AWK=.*/# CONFIG_AWK is not set/' -i .config"
],
"build-commands": [
- "for f in systemd-units/ifup@.service; do sed -e 's|@rootprefix@||g' \"$f.in\" >\"$f\"; done",
- "for f in systemd-units/ntpd.service; do sed -e 's|@userprefix@|/usr|g' \"$f.in\" >\"$f\"; done",
+ "for f in ifup@.service ntpd.service crond.service; do sed -e 's|@rootprefix@||g' \"systemd-units/$f.in\" >\"systemd-units/$f\"; done",
"make"
],
"install-commands": [
"if [ \"$PREFIX\" = /usr ]; then PREFIX=; fi && make CONFIG_PREFIX=\"$DESTDIR$PREFIX\" install && chmod 6755 \"$DESTDIR$PREFIX\"/bin/busybox",
+ "mkdir -p \"$DESTDIR/var/spool/cron/crontabs\"",
"mkdir -p \"$DESTDIR/lib/systemd/system/\"",
"for f in systemd-units/ifup@.service; do install -m 644 \"$f\" \"$DESTDIR/lib/systemd/system\"; done",
"for f in systemd-units/ntpd.service; do install -m 644 \"$f\" \"$DESTDIR/lib/systemd/system\"; done",
diff --git a/systemd-units/crond.service.in b/systemd-units/crond.service.in
new file mode 100644
index 000000000..224c33c09
--- /dev/null
+++ b/systemd-units/crond.service.in
@@ -0,0 +1,6 @@
+[Unit]
+Description=Cron Service
+
+[Service]
+ExecStart=/usr/sbin/crond -f
+Restart=always