help-cfengine
[Top][All Lists]
Advanced

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

Re: process and filters


From: Mark . Burgess
Subject: Re: process and filters
Date: Thu, 30 Jan 2003 21:05:47 +0100 (MET)

THIS WAS A BUG -- FIXED TODAY

M

On  3 Dec, Bas van der Vlies wrote:
> I am now using filters for processes. I want to track down some daemons and 
> make sure that only one runs ( or a specified number). If there are more then 
> one process or less. It must kill the processes and start daemon. 
> I use the following code:
> 
> control:
> 
>   IfElapsed = ( 0 )
>   actionsequence = ( processes )
> 
> processes:
>   "cfexecd"
>      filter=daemons matches=1 action=do signal=kill
>      restart "/etc/init.d/cfexecd restart"
> 
> filters:
>   { daemons
>     PPID: "[ ]+1"
>     Result: "PPID"
>   }
> 
> 
> This code will always kill the 'cfexecd'-daemon and then restart it. What i
> expected was that it will only kill the process if the number of processes
> does not match with 'matches' option. Is this a bug, misconfiguration or 
> intended?
> 
> PS) If this is a bug then i have the time to fix this.
> 
> 
> --
> ********************************************************************
> *                                                                  *
> *  Bas van der Vlies                     e-mail: address@hidden      *
> *  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
> *  Kruislaan 415                         fax:    +31 20 6683167    *
> *  1098 SJ Amsterdam                                               *
> *                                                                  *
> ********************************************************************
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-cfengine



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~






reply via email to

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