help-cfengine
[Top][All Lists]
Advanced

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

Re: cfengine-die help...


From: Predrag Zecevic - Solaris System Administrator
Subject: Re: cfengine-die help...
Date: Tue, 14 Sep 2004 17:03:46 +0200
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Hi Christian,

you are missing one '&' in command bellow: shouldn't this look like: ... && echo "cfengine-die" ?
Regards ;-)

Christian Pearce wrote:

   # Reboot if scheduled automation occurs
   reboot::
       '$(nohup) $(shutdown) -y -g 300 -i 6 "SysNav is rebooting the
server to install patch Cluster(s)." & echo "cfengine-die"'
           background=true
           useshell=true

Can someone explain to me the process under which cfengine kills a
forked script?  This is the last statement I tried.  I call shutdown
with nohup, but that doesn't seem to keep cfengine from killing it after
I echo the cfengine die.  Unfortunately if I don't use cfengine-die
cfengine will not continue executing.

I assume this is the code that does it
if (ptr->timeout != 0)
     {
     alarm(0);
     signal(SIGALRM,SIG_DFL);
     }

alarm(0) sets the seconds for the signal to be generated to zero.
signal(SIGALRM, SIG_DFL) executes Terminate by default with the SIG_DFL
handle.
But shutdown still gets killed off.

--
| Predrag Zecevic | e-Mail: Predrag.Zecevic@2e-Systems.COM |
| 2e Systems GmbH |              Tel: (+49)[0]6107 989 415 |
|Im Taubengrund 12|              Fax: (+49)[0]6107 989 494 |
|65451 Kelsterbach|                                        |
|     Germany     |         Cellular: (+49)[0]174 3109 288 |
+=================+
Anyone who goes to a psychiatrist ought to have his head examined. -- Samuel 
Goldwyn




reply via email to

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