I SIGKILL cron for AIX, it is set to respawn in /etc/inittab. Others I did a
different action (like Linux listed below):
bundle agent update_cron {
files:
"$(global.crontabs)/root"
comment => "Add cf-agent to root's crontab",
edit_line => add_cf_cron,
classes => cdefine("restart_cron","failed_cron");
processes:
restart_cron.aix::
"cron"
comment => "Restart cron since it has been updated",
signals => { "kill" };
commands:
restart_cron.linux::
"/sbin/service crond restart > /dev/null"
comment => "restart cron since it has been updated",
contain => useshell;
}
On Mar 4, 2010, at 10:03 AM, [email protected] wrote:
> Having been spoiled by Vixie Cron I was not aware until yesterday that
> older cron daemons, found in Solaris and AIX, do not automatically reread
> cron tables at regular intervals. Thus if you edit crontables using CF's
> edit files method older cron daemons will not pick-up the changes. What
> to do? I did try sending a HUP signal to an AIX cron daemon yesterday but
> that did nothing. How do others on this list handle cron edits?
>
> Sincerely,
> --
> Neil Watson
> 416-673-3465
>
>
> CONFIDENTIALITY WARNING
> This communication, including any attachments, is for the exclusive use of
> addressee and may contain proprietary and/or confidential information. If you
> are not the intended recipient, any use, copying, disclosure, dissemination
> or distribution is strictly prohibited. If you are not the intended
> recipient, please notify the sender immediately by return e-mail, delete this
> communication and destroy all copies.
>
> AVERTISSEMENT RELATIF À LA CONFIDENTIALITÉ
> Ce message, ainsi que les pièces qui y sont jointes, est destiné à l’usage
> exclusif de la personne à laquelle il s’adresse et peut contenir de
> l’information personnelle ou confidentielle. Si le lecteur de ce message n’en
> est pas le destinataire, nous l’avisons par la présente que toute diffusion,
> distribution, reproduction ou utilisation de son contenu est strictement
> interdite. Veuillez avertir sur-le-champ l’expéditeur par retour de courrier
> électronique et supprimez ce message ainsi que toutes les pièces jointes.
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine