]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Conditionally handle the crontab entry for atrun(8)
authorEnji Cooper <ngie@FreeBSD.org>
Thu, 18 May 2017 06:33:55 +0000 (06:33 +0000)
committerEnji Cooper <ngie@FreeBSD.org>
Thu, 18 May 2017 06:33:55 +0000 (06:33 +0000)
commit043b080e33511355bd797c4408b05971eb352503
tree7bcece20213e0e0da89b8986cc22c9ba21fe34c8
parentcb8106ba7799e792dd1b8a12593cbb8b1ac412d2
Conditionally handle the crontab entry for atrun(8)

The default crontab prior to this commit assumes atrun(8) is always
present, which isn't true if MK_AT == no. Move atrun(8) execution
from /etc/crontab to /etc/cron.d/at, and base /etc/cron.d/at's installation
on MK_AT. cron(8) will detect /etc/cron.d/at's presence when the configuration
is loaded and run atrun every 5 minutes like it would prior to this commit.

SHELL and PATH are duplicated between /etc/crontab and /etc/cron.d/at
because atrun(8) executes programs, which may rely on environment
set in the current default /etc/crontab.

Noted by: bdrewery (in an internal review)
MFC after: 2 months
Relnotes: yes (may need to add environmental modifications to
     /etc/cron.d/at)
Sponsored by: Dell EMC Isilon
etc/Makefile
etc/cron.d/Makefile [new file with mode: 0644]
etc/cron.d/at [new file with mode: 0644]
etc/crontab