help-cfengine
[Top][All Lists]
Advanced

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

Re: Killed wrong proc!


From: Mark . Burgess
Subject: Re: Killed wrong proc!
Date: Wed, 22 Sep 2004 13:46:58 +0200 (MEST)

use a filter which allowed you to specify what you are matching

M


On 22 Sep, Chip Seraphine wrote:
> OK, thanks, Mark.  I see that now.  I thought it was matching only on arg0, 
> but it's just a pattern match against the entire line of 'ps' output...
> 
> So what's the canonical workaround?  I'm sure almost everybody has the 
> similar 
> problem from time to time, right?
> 
> On Tuesday 21 September 2004 16:30, Mark.Burgess@iu.hio.no wrote:
>> 
>> You told it to look for lines that contained the string postfix
>> 
>> M
>> 
>> On 21 Sep, Chip Seraphine wrote:
>> > In cfengine 2.1.10 on Solaris 2., this processes block:
>> >            "postfix"
>> >                    signal=TERM
>> >                    restart "/etc/init.d/postfix restart"
>> > 
>> > produced these results (from -I):
>> > greasy: Signalled process 8142 (postfix) with SIGTERM
>> > greasy: Killed: root      8142  0.0  0.2  1644  624 ?        S    Sep17   
> 0:01 syslogd -m 0 -a
>> > /var/spool/postfix/dev/log greasy: Signalled process 5277 (postfix) with 
> SIGTERM
>> > greasy: Killed: root      5277  0.0  0.4  2884 1088 ?        S    15:12   
> 0:00
>> > /usr/lib/postfix/master greasy: Executing shell command: /etc/init.d/
> postfix restart
>> > greasy: Restart: Shutting down postfix:                         [FAILED]
>> > greasy: Restart: Starting postfix:                              [  OK  ]
>> > greasy: (Done with /etc/init.d/postfix restart)
>> > 
>> > 
>> > Egads!  Why was proc 8142 involved  in that?
>> 
>> 
>> 
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
>> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 
>> 
>> 
>> _______________________________________________
>> Help-cfengine mailing list
>> Help-cfengine@gnu.org
>> http://lists.gnu.org/mailman/listinfo/help-cfengine
>> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




reply via email to

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