Re: Question about notifications


Chronological Thread 
  • From: Jeppe Nejsum Madsen <jeppe@ingolfs.dk>
  • To: chef@lists.opscode.com
  • Subject: Re: Question about notifications
  • Date: Thu, 11 Jun 2009 23:49:20 +0200

On 11 Jun 2009, Arjuna Christensen wrote:

> Restart only fires if the service is currently running - sorry for
> pasting this code in line, but it helps me illustrate.

ok, that (sort of :-) makes sense then. Is there a way to accomplish
what I need: start if stopped, restart if started? 

The only thing I could think of was to stop and then start, but hey if
I can shave some time off the running time I'm all ears :-)

Ahhh just saw your next reply about CHEF-361. Sweet! (Just in case you
forgot, the fix for CHEF-269 is probably less than 5 min ;-) 

> > Second, it seems that the notification always takes place, even if
> > the remote file didn't change:
> 
> A notification should only be triggered if the resource in question
> actually changed. Are you certain that the file is not being updated
> every time?

In this case, yes. What was missing from the log entries was a log entry
I inserted just after the checksums were compared and found equal. Also
note how the log entries doesn't contain anything between the 100% entry
and the restart entry.

/Jeppe



Archive powered by MHonArc 2.6.16.

§