[chef] Re: Re: Re: Re: Re: stop service / config file change / start service


Chronological Thread 
  • From: Vladimir Girnet < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: stop service / config file change / start service
  • Date: Fri, 15 Jul 2011 22:43:21 +0300

Do you have a service that check configuration file on every operation
(stop/start/restart)?

I think you will need first a separate configuration file (just a copy),
and play with several resources with notifications/subscribers to
establish exact order of execution:
 - if file changed - stop service, copy file to required config, start
service



On 7/15/11 6:33 PM, Steven Parkes wrote:
>> I would use notification between the resources for handling that kind
>> of relationship.
> Sorry, did I miss something? I can see how to perform an action after a 
> change with :notifies, but I don't see how to perform an action before the 
> change and only in the case where a change is going to occur.

-- 
Vladimir Girnet
Infrastructure Engineer
Tacit Knowledge
http://www.tacitknowledge.com





Archive powered by MHonArc 2.6.16.

§