[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Order of Operations and Defining 2nd Run
From: |
Brian E. Seppanen |
Subject: |
Order of Operations and Defining 2nd Run |
Date: |
Tue, 14 Feb 2006 15:15:07 -0500 (EST) |
I have my actionsequence as
actionsequence = ( shellcommands processes )
I am loath to modify that order because sometimes a shellcommand is going
to trigger a process restart.
I have enountered a situation though where I want to do a process check to
see if a specific process is running
such as
processes:
debian::
"rpc.statd" signal=term define=servicesremove
"portmap" signal=term define=servicesremove
servicesremove.shellcommands:
debian::
"/usr/bin/env PATH=/sbin:/usr/sbin:/bin/:/usr/bin:/usr/local/bin
/usr/sbin/update-rc.d -f nfs-common remove"
"/usr/bin/env PATH=/sbin:/usr/sbin:/bin/:/usr/bin:/usr/local/bin
/usr/sbin/update-rc.d -f nfs-kernel remove"
"/usr/bin/env PATH=/sbin:/usr/sbin:/bin/:/usr/bin:/usr/local/bin
/usr/sbin/update-rc.d -f portmap remove"
How do I trigger this action to occur only if the identified process is
matched? The servicesremove is being activiated even if the process is
not running and is occurring every time.
BTW: Anyone running a later cfengine version 2.1.17, 2.1.18 successfully
on linux sparc64?
Thanks,
Brian Seppanen
608.826.1464
- Order of Operations and Defining 2nd Run,
Brian E. Seppanen <=