Hey all, I have a simple chunk of code, in which if a file is changed, I notify a service to restart. This all works fine. I had thought that notify is simply just a notify that forces something to run. I also thought that the code that you are notifying will always run, regardless of the dependent object being ran (even if the file doesn't change, the service code is still executed). In my testing, this does not appear to be the case.
Code snip: file { 'something': source => "puppet:///modules/${module_name}/something", path => "/somepath/something", mode => "0755", owner => "root", group => "root", ensure => "file", notify => Service['someservice'], } service { 'someservice': enable => 'true', ensure => 'running', provider => 'redhat', } What I am finding is that I can stop someservice above and do a puppet run. The service is not started by Puppet. The service block of code is not executed at all unless file "something" changes. Is this the expected behavior? I read the puppet doc and it doesn't get real clear on this. I would think the service code would always execute, but it appears the notify relationship is stopping that from happening. Mike -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d76188f0-0a4c-4498-85ad-5cca6c740375%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.