On Wed, Nov 10, 2010 at 10:40 PM, Seva Gluschenko
<seva.glusche...@gmail.com> wrote:
> Alexey, take it easier
>
> Usually if you're restarting a service upon its configuration file(s)
> change, you put those files under Cfengine management as well, so that
> Sandra's question about files is being solved pretty easy like
>
> files:
>    "/etc/ssh/sshd_config"
>           copy_from   => my_scp("$(sys.workdir)/conf/sshd"),
>           classes        => if_repaired("sshd_reconfigured");
>
> processes:
>    sshd_reconfigured::
>        "sshd"
>             signals            => { "hup" },
>             process_select => listening_sshd,
>             restart_class    => restart_sshd;


Yeah, that's much better, Mike C was filling me in on if_repaired()
tonight too, over sushi at LISA 2010.  I invite you to join us next
year in Boston in December...  let me know if you need any help
getting there.

I'd much rather do it natively in Cfengine, so thanks, Seva!  And good
advice to take it easier.  :-)

Yours fondly,
-at
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to