lcfg-cron - The LCFG cron component
This documentation refers to lcfg-cron version 2.0.13
This component configures the cron daemon. It populates the cron configuration files and signals the running cron daemon that they have changed.
Authorization files are constructed for cron and at. The cron component then deletes the existing crontab files that have been created by this component on the previous execution of the configure method, together with those for any users who have base crontab files in the directory specified by the crontabs resource, or who have an additions resource, or an objects resource. Base crontabs are then copied in from the crontabs directory, and any additional entries specified by additions or objects resources are added.
The manual method will call the cron files in the /etc/cron.* directories. This is typically used on portables where the cron daemon is not normally run and this method is called by the manual user update process (via boot.run).
The reload method will make the cron daemon re-read all files. Cron on Linux (and other systems) will reload when a HUP signal is sent. On Solaris, however, it involves a complete stop and start of the daemon.
A (space-separated) list of users or netgroups for the cron.allow file.
A (space-separated) list of users or netgroups for the cron.deny file.
A (space-separated) list of users or netgroups for the at.allow file.
A (space-separated) list of users or netgroups for the at.deny file.
A directory containing base crontabs. Any crontabs in this directory will replace the corresponding crontabs on the machine. The default location is /usr/lib/lcfg/conf/cron/crontabs.
A (space-separated) list of tags for additional crontab entries specified in the resource database.
The crontab entry for the addition tag. If the minute field is specified as AUTO or AUTOMINS, the field will be replaced by a number derived from the hostname of the machine modulo 60. If the hour field is specified as AUTOHOUR, the field will be replaced by a number derived from the hostname of the machine modulo 24. If the day of the week field is specified as AUTODAYS, the field will be replaced by a number derived from the hostname of the machine modulo 7. This is useful for clones.
The username under which the crontab entry add_tag should be run, defaults to root.
A space-separated list of cmetags (component method executions) to be run from cron. A cron.run_cmetag resource must be present for each component method execution listed. The component specified by the cron.object_cmetag resource is executed with the method specifed by the cron.method_cmetag resource at the time specified by the cron.run_cmetag resource.
The component for which the method is to be executed.
The time at which to run the component object_cmetag (in crontab format). If the minute field is specified as AUTO or AUTOMINS, the field will be replaced by a number derived from the hostname of the machine modulo 60. If the hour field is specified as AUTOHOUR, the field will be replaced by a number derived from the hostname of the machine modulo 24. If the day of the week field is specified as AUTODAYS, the field will be replaced by a number derived from the hostname of the machine modulo 7. This is useful for clones.
The method to call for the component object_cmetag, defaults to run.
The username under which to run the component object_cmetag, defaults to root.
Additional arguments to supply when running the component object_cmetag.
This is the location of the pid file (if any) for the cron daemon. The default is /var/run/crond.pid
This is the location of of the initscript for the cron daemon. The default is /etc/init.d/crond
This is the location of the at daemon allowed users file. The default is /etc/at.allow
This is the location of the at daemon denied users file. The default is /etc/at.deny
This is the location of the cron daemon allowed users file. The default is /etc/cron.allow
This is the location of the cron daemon denied users file. The default is /etc/cron.deny
This is the location of the crontab directory. This is only used on systems (such as Solaris) which do not act like Vixie cron which allows the root user to set and delete crontabs for specified usernames. The default location is /var/spool/cron
This is the list of platforms on which we have tested this software. We expect this software to work on any Unix-like platform which is supported by Perl.
Fedora12, ScientificLinux5
Alastair Scobie <ascobie@inf.ed.ac.uk>, Jeremy Olsen <J.Olsen@ed.ac.uk>, Ken Dawson <ktd@inf.ed.ac.uk>, Stephen Quinney <squinney@inf.ed.ac.uk>
Copyright (C) 2001-2008 University of Edinburgh. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the terms of the GPL, version 2 or later.