help-cfengine
[Top][All Lists]
Advanced

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

Re: troubles with process handling


From: Jeremy Mates
Subject: Re: troubles with process handling
Date: Thu, 19 Jan 2006 13:57:41 -0800
User-agent: Mutt/1.4.2i

* Atom Powers <address@hidden>
> processes:
>   "sshd" define=exists elsedefine=doesnt_exist

One workaround: define a restart statement that does nothing.


#!/var/cfengine/bin/cfagent -qvKf
######################################################################

control:
  actionsequence = ( processes )

  linux::
    truth = ( /bin/true )

  !linux::
    truth = ( /usr/bin/true )

processes:
  "sshd" define=exists elsedefine=doesnt_exist restart "${truth}"

alerts:
  exists::
        "process is running"
  doesnt_exist::
        "process is not running"




reply via email to

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