diff --git a/etc/Makefile b/etc/Makefile index 8bfeac2b6b96..4b117d5257de 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -8,6 +8,7 @@ FILESGROUPS= FILES # No need as it is empty and just causes rebuilds since this file does so much. UPDATE_DEPENDFILE= no SUBDIR= \ + cron.d \ newsyslog.conf.d \ syslog.d diff --git a/etc/cron.d/Makefile b/etc/cron.d/Makefile new file mode 100644 index 000000000000..3ddc5fb438ac --- /dev/null +++ b/etc/cron.d/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.include + +.if ${MK_AT} != "no" +FILES+= at +.endif + +BINDIR= /etc/cron.d + +.include diff --git a/etc/cron.d/at b/etc/cron.d/at new file mode 100644 index 000000000000..61fe5a8431ae --- /dev/null +++ b/etc/cron.d/at @@ -0,0 +1,7 @@ +# $FreeBSD$ +# +SHELL=/bin/sh +PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin + +# See crontab(5) for field format. +*/5 * * * * root /usr/libexec/atrun diff --git a/etc/crontab b/etc/crontab index e1e6e8862c8d..a3248dabeb52 100644 --- a/etc/crontab +++ b/etc/crontab @@ -7,8 +7,6 @@ PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin # #minute hour mday month wday who command # -*/5 * * * * root /usr/libexec/atrun -# # Save some entropy so that /dev/random can re-seed on boot. */11 * * * * operator /usr/libexec/save-entropy #