[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.5rc1-120-g2247c80
nfagerlund
nick.fagerlund at gmail.com
Mon Feb 7 06:41:05 UTC 2011
The following commit has been merged in the upstream branch:
commit 0084b082df016ad87752ef570cfe50bce0f6048e
Author: nfagerlund <nick.fagerlund at gmail.com>
Date: Mon Jan 24 13:47:53 2011 -0800
(#5548) Specify return values of manual status commands in service type description.
Reviewed by Matt Robinson.
diff --git a/lib/puppet/type/service.rb b/lib/puppet/type/service.rb
index c00f027..2801f3a 100644
--- a/lib/puppet/type/service.rb
+++ b/lib/puppet/type/service.rb
@@ -144,10 +144,16 @@ module Puppet
specified."
end
newparam(:status) do
- desc "Specify a *status* command manually. If left
- unspecified, the status method will be determined
- automatically, usually by looking for the service in the
- process table."
+ desc "Specify a *status* command manually. This command must
+ return 0 if the service is running and a nonzero value otherwise.
+ Ideally, these return codes should conform to
+ [the LSB's specification for init script status actions](http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html),
+ but puppet only considers the difference between 0 and nonzero
+ to be relevant.
+
+ If left unspecified, the status method will be determined
+ automatically, usually by looking for the service in the process
+ table."
end
newparam(:stop) do
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list