help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defining A Class to Trigger a Process Signal


From: Brendan Strejcek
Subject: Re: Defining A Class to Trigger a Process Signal
Date: Tue, 23 Nov 2004 11:07:11 -0600
User-agent: Mutt/1.5.6+20040818i

copy:
    somehost::
        /path/to/file dest=/path/to/dest define=asdf
processes:
    asdf.somehost::
        "pat" signal=hup

Brian E. Seppanen wrote:

> I have a file that is periodically updated and passed to other hosts via 
> cfengine.   I would like to define a process entry that will restart based 
> upon the file copy being required.
> 
> Such that my example, I think would work is
> 
>         /filea
>                 dest=/filea
>                 server=fileserver
>                 encrypt=true
>                 define=aupdate
> 
> Now how do I activate this process entry only to occur for copy.
> 
> Would I define the class for the process as hosta.aupdate::   with the 
> following action?
> 
>         "appa"
>                 signal=hup
>                 syslog=on
>                 inform=true
>                 action=signal
>         SetOptionString "auxwf"
> 
> I don't quite understand how that works, and any insight would be 
> appreciated.
> 
> Thanks,
> 
> 
> Brian Seppanen
> seppy@chartermi.net
> 906-475-0107 ext 1040
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]