Issue #18021 has been reported by Amos Shapira.
----------------------------------------
Bug #18021: daemontools service provider ignores "restart" command
https://projects.puppetlabs.com/issues/18021
Author: Amos Shapira
Status: Unreviewed
Priority: Normal
Assignee:
Category: provider
Target version:
Affected Puppet version: 2.7.20
Keywords: daemontools
Branch:
Hello,
(I submitted this on puppet-users Google group without response and think that
I found a bug, so I'm copying here):
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
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?
--
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.