On Thu, Jan 26, 2006 at 09:28:13AM -0500, PAUL WILLIAMSON wrote:
> How can I tell a process to restart only if a certain file has changed?
Assuming that the banner is put in place by CFE, have the copy
statement 'define' a class when it updates the file. Then, put a
entry in processes that kills / restarts SSHD if that class is
true, and another stanza that is based on that class being false
that just verifies sshd is running.

copy:

any::
/some/file
dest=/other/file
define=restart_sshd

processes:

restart_sshd::
"sshd" signal=kill restart "/etc/init.d/sshd start"

!restart_sshd::
"sshd" restart "/etc/init.d/sshd start"


Or something along those lines.

-Jason Martin
-- 
"Apple" (c) 6024 b.c., Adam & Eve
This message is PGP/MIME signed.

Attachment: pgppxepknBrHV.pgp
Description: PGP signature

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

Reply via email to