Amos Shapira
2012-Dec-06 05:17 UTC
[Puppet Users] daemontools service provider doesn''t support "restart" parameter?
Hello, Using Puppet 2.7(.20), I''m trying to override the "restart" command of a service controlled by daemontools provider using: service { ''bamboo-agent'': hasrestart => false, provider => ''daemontools'', restart => ''/bin/touch /var/run/needs-restart'', ... } And ... notify => Service[''bamboo-agent''] ... But the service keeps being restarted using "svc -t ..." As far as I follow the documents this is supposed to work (http://docs.puppetlabs.com/references/2.7.latest/type.html#service) but as far as I follow the code in ashapira@buildeng-puppet:/usr/lib/ruby/gems/1.8/gems/puppet-2.7.20/lib/puppet/provider/service/daemontools.rb it''s not supported: def restart svc "-t", self.service end (i.e. not looking at restartcmd) Am I missing something or is it a bug? How can I get it to work with Puppet 2.7? Thanks, --Amos -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/OHcXX58jEUQJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Amos Shapira
2012-Dec-06 21:36 UTC
[Puppet Users] Re: daemontools service provider doesn''t support "restart" parameter?
I copied the question to issue http://projects.puppetlabs.com/issues/18021 since I think I stumbled on a bug. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/8Wk9pD2EZ7gJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.