For copy's, just use define=reloadsshd in your copy: stanza, then you can create a shell commands section to restart.  You'll need to hold back the copy operation with any time/date/machine classes to avoid a business hours restart.

shellcommands:
 reloadsshd::              
    "/sbin/service sshd restart" inform=false

(or use motd- no need to restart)

On 1/26/06, PAUL WILLIAMSON <[EMAIL PROTECTED]> wrote:
How can I tell a process to restart only if a certain file has changed?

We just changed the way our login banners are supposed to occur.
Before, they appeared prior to login, so I could just use the
sshd_config file and specify an banner in the file.  Now, I need
to present the banner after login.  In order to do this, I need to
restart sshd.  But, I don't want to restart sshd during the
middle of the day or when the sshd_config file hasn't changed.

Paul



_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine



--
Doug Chapman
prjctgeet at gmail dot com
_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to