Hi,
the attached patch provides some initial fcron-like func-
tionality. Given a crontab of:
| %daily */7 * echo daily
| %weekly */23 * echo weekly
| %hourly */3 echo hourly
it will run:
1. "echo daily" once per calendar day, on the first possi-
bility of minute % 7 == 0,
2. "echo weekly" once per calendar week (Monday to Sunday),
on the first possibility of minute % 23 == 0, and
3. "echo hourly" once per hour, on the first possibility of
minute % 3 == 0.
Periods are reset when crond is started. I haven't actually
tested the daily/weekly bits thoroughly as I didn't want to
wait :-). I didn't get the indentation quite right as TABs
are pure evil.
I'd like to push this to fedorahosted.org in a branch to
ease collaboration and thus have applied for the gitcronie
group.
In further development, besides writing documentation,
I'll add a state file in /var/lib that saves the times of
last execution over a reset. For that I'd like to survey
what in users' views makes a job "unique". I. e., should
the time of last execution of "%daily */7 * echo daily" be
based besides the user name on the command ("echo daily"),
the command and flattened schedule ("echo daily",
"0:00/0:07/0:14/0:21/etc."), the literal crontab line or
something else? This is not only interesting for restarts,
but also for user crontab reloads.
Tim
On 05/03/2012 09:15 PM, SJ_UnderWater wrote:
> Hi,
> I use cronie with Archlinux (it has replaced crond), where the maintainer has made packages that provide "smtp-server" (i.e. `sendmail`) optional dependencies. Whether or not this is appropriate, I posted the following bug with them https://bugs.archlinux.org/task/29722, because of the entries that appear in the system error log when sendmail is missing. I suggested a fix (completely untested and just a rough pointer) which lowers the severity of these messages, but was also hoping to get some information from you about the assumption of sendmail when using cronie.
> Does cronie merely fail gracefully without sendmail, or is it truly optional? If it is optional, would it be possible to lower the severity of the messages posted so they don't appear to be errors?
Hello,
I was asked to apply patches, which make sendmail optional. I don't even
require sendmail in cronie package for Fedora. Cronie should be working
fine without it.
I can't find your logfile from cronie. In my case no error messages are
printed in log file. Could you send to me:
* version of cronie
* part of your logfile with error messages
* and optionally: which options are used with configure
Thanks,
Marcela