I have the following pseudocode
actionsequence = ( processes.pre copy directories links files
editfiles packages tidy shellcommands processes )
AddInstallables = ( "servicesremove" )
shellcommands:
servicesremove::
"/usr/bin/env PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
/usr/sbin/update-rc.d -f atd remove"
processes:
pre.debian::
"atd" action=warn matches>0 define=servicesremove
debian.!pre::
"atd" signal=term
I get the following output
*********************************************************************
Main Tree Sched: processes.pre pass 1 @ Wed Apr 19 11:51:41 2006
*********************************************************************
New temporary class additions
--------( Pass 1 )-------
pre
cfengine:sibelius: Running process command /bin/ps auxw
cfengine:sibelius: Process alert: USER PID %CPU %MEM VSZ RSS TTY
STAT START TIME COMMAND
cfengine:sibelius: Process alert: daemon 13436 0.0 0.1 1764 632 ?
Ss 11:51 0:00 /usr/sbin/atd
Defining classes servicesremove
DoSignals(atd)
*********************************************************************
Main Tree Sched: shellcommands pass 1 @ Wed Apr 19 11:51:41 2006
*********************************************************************
*********************************************************************
Main Tree Sched: processes pass 1 @ Wed Apr 19 11:51:41 2006
*********************************************************************
cfengine:sibelius: Running process command /bin/ps auxw
cfengine:sibelius: Signalled process 13436 (atd) with SIGTERM
cfengine:sibelius: Killed: daemon 13436 0.0 0.1 1764 632 ? Ss
11:51 0:00 /usr/sbin/atd
Defining classes
DoSignals(atd)
---------------------------------------------------------------------
Why doesn't servicesremove trigger the shellcommand defined under group
servicesremove. Am I insane? I've fought with this forever and asked
about this earlier, I just assumed I was doing something wrong. I can't
figure out what it would be.
This is happening on 2.1.20 and has happened when I was using 2.1.13.
Brian Seppanen
608.826.1464
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine