diff options
| author | nfagerlund <nick.fagerlund@gmail.com> | 2011-02-28 10:37:46 -0800 |
|---|---|---|
| committer | nfagerlund <nick.fagerlund@gmail.com> | 2011-02-28 10:37:46 -0800 |
| commit | 94f8ead4efbd5909f1bb4f7e62cb5d705d55d381 (patch) | |
| tree | 6fe0f1beeef18fdbf0f75e2cc97b2c3c20c1e9af | |
| parent | c80a77d0d141cd933db3f4b124b992d767577f08 (diff) | |
| download | puppet-94f8ead4efbd5909f1bb4f7e62cb5d705d55d381.tar.gz puppet-94f8ead4efbd5909f1bb4f7e62cb5d705d55d381.tar.xz puppet-94f8ead4efbd5909f1bb4f7e62cb5d705d55d381.zip | |
(#6509) Inline docs: Fix broken lists in Launchd provider.
Lists need a leading linebreak.
| -rw-r--r-- | lib/puppet/provider/service/launchd.rb | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/puppet/provider/service/launchd.rb b/lib/puppet/provider/service/launchd.rb index 1632edabf..07c549a8b 100644 --- a/lib/puppet/provider/service/launchd.rb +++ b/lib/puppet/provider/service/launchd.rb @@ -3,33 +3,36 @@ require 'facter/util/plist' Puppet::Type.type(:service).provide :launchd, :parent => :base do desc "launchd service management framework. - This provider manages launchd jobs, the default service framework for - Mac OS X, that has also been open sourced by Apple for possible use on - other platforms. + This provider manages jobs with launchd, which is the default service framework for + Mac OS X and is potentially available for use on other platforms. See: + * http://developer.apple.com/macosx/launchd.html * http://launchd.macosforge.org/ This provider reads plists out of the following directories: + * /System/Library/LaunchDaemons * /System/Library/LaunchAgents * /Library/LaunchDaemons * /Library/LaunchAgents - and builds up a list of services based upon each plists \"Label\" entry. + ...and builds up a list of services based upon each plist's \"Label\" entry. This provider supports: + * ensure => running/stopped, * enable => true/false * status * restart Here is how the Puppet states correspond to launchd states: - * stopped => job unloaded - * started => job loaded - * enabled => 'Disable' removed from job plist file - * disabled => 'Disable' added to job plist file + + * stopped --- job unloaded + * started --- job loaded + * enabled --- 'Disable' removed from job plist file + * disabled --- 'Disable' added to job plist file Note that this allows you to do something launchctl can't do, which is to be in a state of \"stopped/enabled\ or \"running/disabled\". |
