Hello Josh Thanks for reply so quickly, here is my manifest, thinking about it, I assume it because i'm installing the agent every time, do I need to do something like if service doesn't exist install else ignore ?
regards James file { 'C:/Installs/check-mk-agent-1.2.1i5.exe': source => 'puppet:///modules/base/check-mk-agent-1.2.1i5.exe', mode => '0770', owner => 'SYSTEM', group => 'Administrators', } -> exec { 'Check_MK_Agent': command => 'C:/Installs/check-mk-agent-1.2.1i5.exe /S', } ~> service { 'Check_MK_Agent': ensure => 'running', enable => true, require => exec['Check_MK_Agent'], } On Thursday, 7 February 2013 16:24:10 UTC, Josh Cooper wrote: > > Hi Jim, > > On Thu, Feb 7, 2013 at 7:15 AM, jim <str...@gmail.com <javascript:>> > wrote: > > Hello all, > > > > Can anyone please help, every time I push a config to my hosts, the > windows > > service I have just defined keeps stopping and starting, and logging in > the > > eventlog, > > > > I only want the service to stop and start, if something has changed, and > to > > my knowledge nothing has changed ? so it should stay running ? > > > > Can some one please help or explain > > > > regards > > > > James > > > > -- > > 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...@googlegroups.com <javascript:>. > > To post to this group, send email to > > puppet...@googlegroups.com<javascript:>. > > > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > From http://docs.puppetlabs.com/references/latest/type.html#service, > "Note that if a service receives an event from another resource, the > service will get restarted." > > Can you post your manifest? Sounds like your service is subscribed to > some other resource, perhaps a package whose name doesn't match its > name in Add/Remove Programs? > > Josh > > -- > Josh Cooper > Developer, Puppet Labs > -- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.