On 01/03/2014 09:30 AM, Lars E. Pettersson wrote:
On 01/03/2014 04:22 PM, Steven Stern wrote:
> It's an upgrade. Sendmail is installed, enabled, and working.
Ah, OK. I also have an upgraded system, and I also have the same lines
in the crontab file, so I think it should just work. Strange. What is
the output of 'systemctl -l status crond.service'?
Lars
Cron is running. The job gets done. I just don't get the output.
(It's
my daily rdiff backup job.)
$ sudo systemctl -l status crond.service
crond.service - Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled)
Active: active (running) since Fri 2014-01-03 09:17:31 CST; 14min ago
Main PID: 631 (crond)
CGroup: /system.slice/crond.service
└─631 /usr/sbin/crond -n
Jan 03 09:17:31 sds-desk-2.sterndata.local systemd[1]: Starting Command
Scheduler...
Jan 03 09:17:31 sds-desk-2.sterndata.local systemd[1]: Started Command
Scheduler.
Jan 03 09:17:31 sds-desk-2.sterndata.local crond[631]: (CRON) INFO
(RANDOM_DELAY will be scaled with factor 79% if used.)
Jan 03 09:17:31 sds-desk-2.sterndata.local crond[631]: (CRON) INFO
(running with inotify support)
Note: Cron's only been running for 14 minutes because I rebooted after
this morning's kernel update. It was running at 6:15 when this mornings
cron job was run.
$ crontab -l
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR
sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * command to be executed
15 6 * * * /home/sdstern/bin/do_rdiff
$grep rdiff /var/log/cron
Dec 29 06:15:01 sds-desk-2 CROND[4714]: (sdstern) CMD
(/home/sdstern/bin/do_rdiff)
Dec 30 06:15:01 sds-desk-2 CROND[31073]: (sdstern) CMD
(/home/sdstern/bin/do_rdiff)
Dec 31 06:15:01 sds-desk-2 CROND[29715]: (sdstern) CMD
(/home/sdstern/bin/do_rdiff)
Jan 1 06:15:01 sds-desk-2 CROND[21297]: (sdstern) CMD
(/home/sdstern/bin/do_rdiff)
Jan 2 06:15:01 sds-desk-2 CROND[13602]: (sdstern) CMD
(/home/sdstern/bin/do_rdiff)
Jan 3 06:15:01 sds-desk-2 CROND[5700]: (sdstern) CMD
(/home/sdstern/bin/do_rdiff)
Dec 20 06:15:01 sds-desk-2 CROND[902]: (sdstern) CMD
(/home/sdstern/bin/do_rdiff)
Dec 21 06:15:01 sds-desk-2 CROND[24816]: (sdstern) CMD
(/home/sdstern/bin/do_rdiff)
Dec 22 06:15:01 sds-desk-2 CROND[22374]: (sdstern) CMD
(/home/sdstern/bin/do_rdiff)
Dec 23 06:15:01 sds-desk-2 CROND[14503]: (sdstern) CMD
(/home/sdstern/bin/do_rdiff)
[sdstern@sds-
--
-- Steve