Sandra,

your sshd signaling promise is perfectly correct (any:: can be easily
omitted, though, since it does nothing and gets overridden by
sshd_reconfigured::). What does verbose run show?

2010/11/24 Sandra Wittenbrock <san...@hpcrd.lbl.gov>:
> Hello,
>
> I am trying to use if_repaired(x).
>
> I have it defined as follows in library.cf:
>
> body classes if_repaired(x) {
>    promise_repaired => { "$(x)" };
> }
>
> I'm using the following in an attempt to restart sshd when the
> configuration is changed by cfengine.  Unfortunately, I'm not able to
> get it to detect any changes have been made.  I use the umycopy
> elsewhere in the same way, and don't see any problems.
>
> Any help would be appreciated.
>
> files:
>
>      "/etc/ssh/sshd_config"
>         perms => usystem("0744"),
>         copy_from  =>
> umycopy("/var/lib/cfengine3/masterfiles/conf/sshd_config"),
>         classes    => if_repaired("sshd_reconfigured");
>
> processes:
>
>      any::
>        sshd_reconfigured::
>         "sshd"
>             signals     => { "hup" },
>             process_select => listening_sshd,
>             restart_class => "restart_sshd";
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
>



-- 
SY, Seva Gluschenko.
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to