Issue #2056 has been updated by Moses Mendoza.

Status changed from Merged - Pending Release to Closed

released in 2.7.12.
----------------------------------------
Refactor #2056: Runit and launchd service providers ignores explicit 'stop' 
command
https://projects.puppetlabs.com/issues/2056#change-68227

Author: James Turnbull
Status: Closed
Priority: Normal
Assignee: 
Category: service
Target version: 2.7.11
Affected Puppet version: 0.24.7
Keywords: 
Branch: 


Ticket #2026 identified an issue with the Red Hat server provider.  This issue 
is also present on the launchd and runit providers.

<pre>
A discussion [1] on the mailinglist let me test the problem. And I can confirm 
the discussed problem and would say that the redhat service provider is 
ignoring any supplied stop command:

This is a run with latest head:

# cat foo.pp 

service{'httpd':
        stop => '/bin/false',
        ensure => stopped,
}
# puppet --debug foo.pp
info: Loading fact virtual
debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does not 
exist
debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not 
exist
debug: Puppet::Type::Service::ProviderDebian: file /usr/sbin/update-rc.d does 
not exist
debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not 
exist
debug: Creating default schedules
debug: Service[httpd](provider=redhat): Executing 'ps -ef'
debug: Service[httpd](provider=redhat): PID is 9148
debug: //Service[httpd]: Changing ensure
debug: //Service[httpd]: 1 change(s)
debug: Puppet::Type::Service::ProviderRedhat: Executing '/sbin/service httpd 
stop'
notice: //Service[httpd]/ensure: ensure changed 'running' to 'stopped'
debug: Finishing transaction 23924404000140 with 1 changes

[1] 
http://groups.google.com/group/puppet-users/browse_thread/thread/e21a9b1e4621b58
</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