help-cfengine
[Top][All Lists]
Advanced

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

Shellcommand forking twice on Solaris 8?


From: ABostick
Subject: Shellcommand forking twice on Solaris 8?
Date: Tue, 30 Jul 2002 09:16:10 -0500

Hi all,

Maybe this is related to the message "Multiple executions of actionsequence
content" or maybe not.  Hopefully someone can explain this behavior to me.
I copy a tar file along with a dumb shell sript to a Solaris 8 host and then
later in the actionsequence I run the shellscript.  The shellscript's
contents are:

cd /opt/patch
tar xvzpf /opt/patch/112438-01.tar.gz
patchadd 112438-01
rem_drv random
add_drv random

The script worked fine and I was able to apply my patch, however, while the
script is running (from a cfrun command), ps shows (I ran cfagent from the
host to get the ps output but ran the batch from cfrun):  

    root 28981 28978  2 09:12:12 pts/3    0:01 /bin/ksh -hp
/usr/sbin/patchadd 112438-01
    root 28977 28970  0 09:12:11 pts/3    0:00 sh -c
/opt/patch/installpatch.sh
    root 28978 28977  0 09:12:12 pts/3    0:00 sh -c
/opt/patch/installpatch.sh
    root 29023 28938  0 09:12:13 pts/16   0:00 grep patch
    root 28970 28965  4 09:12:04 pts/3    0:02 ./bin/cfagent -q -v -D patch

Can someone explain why I get two instances of my installpatch.sh script and
why one is the parent of the other?  Is this something cfengine is doing or
do I just not understand the Solaris 8 forking model?

I have had great success using cfengine to do everything *except* run
shellscripts like this.  I thought maybe this could be related to some other
problems I am having.

Thanks for your time and help,
Aaron Bostick
MyDocOnline.com



reply via email to

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