I don't think you need to re-hup that, but it should look something
like:
control:
actionsequence = ( editfiles shellcommands )
editfiles:
linux::
{ /etc/ssh/sshd_config
ReplaceAll "#Banner /some/path" With "Banner
/etc/issue"
AppendIfNoSuchLine "X11Forwarding yes"
DefineClasses "HUPsshd"
}
shellcommands:
linux.HUPsshd::
"/sbin/service sshd restart" useshell=false
hth,
-luis
On Jun 19, 2006, at 1:04 PM, Jason Martin wrote:
> On Mon, Jun 19, 2006 at 11:32:26AM -0500, Michael Grubb wrote:
>> I'm editing a crontab file with editfiles, then setting a class
>> cron_needs_hup. Then in the processes stanza I send the cron daemon
>> a HUP signal if the cron_needs_hup signal is set.
>> I would then if the daemon was signaled be able to turn it back off.
>> Is there an easy/good way to do this?
> Why do you need to turn it off?
>
> -Jason Martin
> --
> Individualists of the world, UNITE!
> This message is PGP/MIME signed.
> _______________________________________________
> Help-cfengine mailing list
> [email protected]
> http://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
[email protected]
http://cfengine.org/mailman/listinfo/help-cfengine