Issue #13124 has been updated by Patrick Carlisle.

Status changed from Unreviewed to Duplicate

This looks the same as #7165 to me.
----------------------------------------
Bug #13124: Refresh events can cause a service to restart immediately after 
starting
https://projects.puppetlabs.com/issues/13124#change-56958

Author: Jonathan Boyett
Status: Duplicate
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Description: Refresh events cause the service to restart, even if the service 
isn't started.
Expected Behavior: If a stopped service receives a refresh event and the 
service is started later in the run, the service will not restart.
Observed Behavior: If a stopped service receives a refresh event and the 
service is started later in the run, the will be restarted.
Example:
<pre>
class foo::package {
  package { 'foo':
    ensure => present
  }
}

class foo::config {
  file { '/etc/foo':
    ensure => present,
    mode   => '0600',
    notify => Service['foo']
  }
}

class foo::service {
  service { 'foo':
    ensure => running,
    enable => true,
    hasstatus => true,
    hasrestart => true
  }
}

define foo::anchor {}

class foo {
  Class['foo::package'] -> Class['foo::config'] -> Class['foo::service'] -> 
Foo::Anchor['foo::end']

  class { 'foo::package': }
  class { 'foo::config': }
  class { 'foo::service': }
  foo::anchor { 'foo::end': }
}
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to