* Atom Powers <[EMAIL PROTECTED]>
> 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"
_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine