diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-10-03 11:14:33 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-10-03 11:14:33 +0100 |
commit | 17b8b79287aa605a5f4b4c82254b6313b88f7031 (patch) | |
tree | b3c4a08a2478151716156a7eb5ebd3056052b890 | |
parent | 9e833f5f2646a2ffb4d897e4dce0524b47060c67 (diff) | |
download | busybox-17b8b79287aa605a5f4b4c82254b6313b88f7031.tar.gz |
Add crond service
-rw-r--r-- | busybox.morph | 4 | ||||
-rw-r--r-- | systemd-units/crond.service.in | 6 |
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 |