CFEngine Help: Re: CFEngine Help: Define classes if a process is running or not

2012-08-02 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: Define classes if a process is running or not Author: loopx Link to topic: https://cfengine.com/forum/read.php?3,26839,26862#msg-26862 Hi, I will make some update to my code to try to avoid using the module and use only one class

CFEngine Help: Re: CFEngine Help: Define classes if a process is running or not

2012-08-02 Thread no-reply
Forum: CFEngine Help Subject: Re: CFEngine Help: Define classes if a process is running or not Author: loopx Link to topic: https://cfengine.com/forum/read.php?3,26842,26861#msg-26861 Yes, I think too it's a better idea to only have 1 class (set or unset) but not both ... Think pos

Re: CFEngine Help: Define classes if a process is running or not

2012-08-01 Thread Nick Anderson
On 08/01/2012 05:00 AM, no-re...@cfengine.com wrote: > To make some promise, I need to define classes like this : > - XXX_running > - XXX_stopped Sometimes, it is helpful to take a step back and think about things from a different perspective. I know this is not a direct answer to your question,

Re: CFEngine Help: Define classes if a process is running or not

2012-08-01 Thread Ted Zlatanov
On Wed, 1 Aug 2012 12:00:00 +0200 (CEST) loopx wrote: n> To make some promise, I need to define classes like this : n> - XXX_running n> - XXX_stopped n> But, I've seen that it's possible to define classes with built-in n> methods of Cfengine3. In the community lib, I've tried to use n> "if_else

CFEngine Help: Define classes if a process is running or not

2012-08-01 Thread no-reply
Forum: CFEngine Help Subject: Define classes if a process is running or not Author: loopx Link to topic: https://cfengine.com/forum/read.php?3,26838,26838#msg-26838 Hi, To make some promise, I need to define classes like this : - XXX_running - XXX_stopped At the beginning, we was using (like