Have you by any chance made changes in /etc/defaults/rc.conf? Because that could explain something I guess.
No, I haven't changed anything there. Here is the output of
/etc/defaults/rc.conf where cron is concerned:
Code:
cron_enable="YES" # Run the periodic job daemon.
cron_program="/usr/sbin/cron" # Which cron executable to run (if enabled).
cron_dst="YES" # Handle DST transitions intelligently (YES/NO)
cron_flags="" # Which options to pass to the cron daemon.
After a reboot a few minutes ago, I started cron via
# service cron start
and it started without any error messages.
You might want to take a look at /var/log/messages and/or /var/log/cron to see if those mention anything specific.
Ok, found a few issues which showed up in
/var/log/messages:
Code:
Mar 1 07:43:13 bloaty pflogd[60313]: [priv]: failed to open /var/log/pflog: Is a directory
Mar 1 07:44:13 bloaty pflogd[60313]: [priv]: failed to open /var/log/pflog: Is a directory
Mar 1 07:46:14 bloaty last message repeated 2 times
Mar 1 07:52:17 bloaty last message repeated 6 times
Mar 1 07:52:24 bloaty mark: /etc/rc.d/cron: WARNING: failed to start cron
Mar 1 07:53:18 bloaty pflogd[60313]: [priv]: failed to open /var/log/pflog: Is a directory
Mar 1 07:54:18 bloaty pflogd[60313]: [priv]: failed to open /var/log/pflog: Is a directory
Well, my bad creating that pflog file as a directory! Fixed that. After reboot I still don't have a working cron service, however, the cron warning has not shown itself since in
/var/log/messages after rebooting. I still had to start cron service manually.
Here are the most recent lines from
/var/log/cron:
Code:
Mar 1 07:40:00 bloaty /usr/sbin/cron[63337]: (root) CMD (/usr/libexec/atrun)
Mar 1 07:55:00 bloaty /usr/sbin/cron[90076]: (operator) CMD (/usr/libexec/save-entropy)
Mar 1 07:55:00 bloaty /usr/sbin/cron[94291]: (root) CMD (/usr/libexec/atrun)
Mar 1 08:05:00 bloaty /usr/sbin/cron[60129]: (root) CMD (/usr/libexec/atrun)
Mar 1 08:10:00 bloaty /usr/sbin/cron[48776]: (root) CMD (/usr/libexec/atrun)
Mar 1 08:11:00 bloaty /usr/sbin/cron[25184]: (operator) CMD (/usr/libexec/save-entropy)
Mar 1 08:15:00 bloaty /usr/sbin/cron[98106]: (root) CMD (/usr/libexec/atrun)
Mar 1 08:15:00 bloaty /usr/sbin/cron[98112]: (root) CMD (/usr/local/sbin/zfs-auto-snapshot frequent 4 )