diff options
| author | nfagerlund <nick.fagerlund@gmail.com> | 2011-01-24 13:47:53 -0800 |
|---|---|---|
| committer | nfagerlund <nick.fagerlund@gmail.com> | 2011-01-25 15:06:03 -0800 |
| commit | 0084b082df016ad87752ef570cfe50bce0f6048e (patch) | |
| tree | d9bb70819dc6c4c0a295ce58aa170d7e7206a84f /lib/puppet | |
| parent | 41090d3617d99f9eaa58df32be93f3d16467bc50 (diff) | |
| download | puppet-0084b082df016ad87752ef570cfe50bce0f6048e.tar.gz puppet-0084b082df016ad87752ef570cfe50bce0f6048e.tar.xz puppet-0084b082df016ad87752ef570cfe50bce0f6048e.zip | |
(#5548) Specify return values of manual status commands in service type description.
Reviewed by Matt Robinson.
Diffstat (limited to 'lib/puppet')
| -rw-r--r-- | lib/puppet/type/service.rb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/puppet/type/service.rb b/lib/puppet/type/service.rb index c00f02789..2801f3a78 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 |
