You are not logged in.
I keep getting hourly emails from root to root on my Linux email server. This just happened with the last update and it's extremely annoying now because my mail account 'carlos' is configured to receive email for root. The emails appear very useless:
Subject: cron for user root job sys-hourly
Body = Usage: /usr/sbin/run-cron crondir
Does anyone know exactly what this means and why it's doing it? I would like to also disable these constant notifications but not interrupt any server / cron functionality.
./
Offline
https://bbs.archlinux.org/viewtopic.php?id=125392
He tried to find a better way, but no responses yet https://bbs.archlinux.org/viewtopic.php?id=125279
Offline
Hmmm weird. I wonder why now all of a sudden after I upgraded my Arch system they come every hour but before I never got them. Rather than deal with all of that mess above, I'm going to change the setting in /etc/aliases so my user doesn't get root's email.
./
Offline
Maybe you're using another cron? Arch provides a couple.
Offline
I never knew that. I thought Cron was Cron and never knew Arch Linux had multiple versions of variations or Cron installed.
./
Offline
I never knew that. I thought Cron was Cron and never knew Arch Linux had multiple versions of variations or Cron installed.
These are simply different implementations, different packages. Previously dcron was the default one, now it's cronie.
Last edited by karol (2011-09-19 17:36:29)
Offline
I think you're using crond (because crond provides /usr/sbin/run-cron), not cronie, as graysky, so his fixes may not work for you.
Let's have a closer look at what /usr/sbin/run-cron is:
[karol@black ~]$ cat /usr/sbin/run-cron
#!/bin/sh
# this is a bare-bones alternative to Debian's run-parts
if ! [ -d "$1" ]; then
echo "Usage: $0 crondir" >&2
exit 1
fi
for cronfile in "$1"/* ; do
if [ -x "$cronfile" ]; then
"$cronfile"
fi
done
unset cronfile
Body of the message you're getting is the output of /usr/sbin/run-cron run on a nonexisting directory - see the first 'if' clause in /usr/sbin/run-cron:
if ! [ -d "$1" ]; then
echo "Usage: $0 crondir" >&2
exit 1
fi
[karol@black ~]$ /usr/sbin/run-cron foobarbaz
Usage: /usr/sbin/run-cron crondir
Check if you have /etc/cron.hourly directory.
Offline
The removal of /etc/cron.hourly/ is due to a bug[1] in pacman, which is fixed in pacman 4.0.
/etc/cron.hourly/ is part of the dcron package, so you can just reinstall dcron for now.
This silver ladybug at line 28...
Offline
The removal of /etc/cron.hourly/ is due to a bug[1] in pacman, which is fixed in pacman 4.0.
/etc/cron.hourly/ is part of the dcron package, so you can just reinstall dcron for now.
Thanks a lot! I vaguely remembered there was an issue involving cron.hourly directory https://bbs.archlinux.org/viewtopic.php?id=123484
I have some hourly cron jobs so the directory is present on my system.
Offline