thanks! just wanted to be sure

On Thu, Sep 23, 2010 at 10:19 AM, Stephen McNally <[email protected]
> wrote:

> It's my understanding that as long as you have the ensure => running line
> in your service definition, a notify will restart it.  As an alternative you
> could add the subscribe => File["named.conf"] to your service definition.
>
> -Stephen
>
> On Thu, Sep 23, 2010 at 1:01 PM, Luc Suryo <[email protected]> wrote:
>
>> Simple question
>>
>> If a file changes and it notify a service, will the service be restarted?
>> If not do I need to create a exec? (which I have right now)
>> below is what I have in mind:
>>
>> it this correct? thanks!
>>
>>
>> file { "named.conf" :
>>         path => "/var/named/etc/name.conf",
>>         mode => 0444, owner => named, group => named,
>>         notify => Service[ "named::server ]
>> }
>>
>>
>> service { "named::server" :
>>                name => $operatingsystem ? {
>>                         centos => "named",
>>                          ubuntu => "bind9",
>>                          solaris => "named".
>>                 }.
>>                 enable => true,
>>                ensure => running,
>> }
>>
>> --
>> -ls
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<puppet-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<puppet-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>



-- 
-ls

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to