I've often wondered this myself. I currently keep one backup of the config and restart only if the current and the backup differ, but its incredibly hacky and doesn't work if you put a "configured by chef" time stamp at the top.
It doesn't appear that that recipe only restarts if the file is changed. Or am I missing something?
...spike
(Sent via handheld, please pardon spelling errors)
On Feb 7, 2013, at 8:18 AM, Mike < "> > wrote:
> See here, from the opsocde ntp cookbook:
> https://github.com/opscode-cookbooks/ntp/blob/master/recipes/default.rb#L44-L50
>
> On Thu, Feb 7, 2013 at 6:50 AM, Alex Vitola < "> > wrote:
>> How do I restarting a service only if your configuration files are changed
>>
>>
>> Example: ntp service
Archive powered by MHonArc 2.6.16.