summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/service/src.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/provider/service/src.rb')
-rwxr-xr-xlib/puppet/provider/service/src.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/provider/service/src.rb b/lib/puppet/provider/service/src.rb
index eadce8e96..fe178ab4f 100755
--- a/lib/puppet/provider/service/src.rb
+++ b/lib/puppet/provider/service/src.rb
@@ -1,7 +1,7 @@
# AIX System Resource controller (SRC)
Puppet::Type.type(:service).provide :src, :parent => :base do
- desc "Support for AIX's System Resource controller.
+ desc "Support for AIX's System Resource controller.
Services are started/stopped based on the stopsrc and startsrc
commands, and some services can be refreshed with refresh command.
@@ -31,7 +31,7 @@ Puppet::Type.type(:service).provide :src, :parent => :base do
end
def restart
- begin
+ begin
execute([command(:lssrc), "-Ss", @resource[:name]]).each do |line|
args = line.split(":")
@@ -65,14 +65,14 @@ Puppet::Type.type(:service).provide :src, :parent => :base do
end
def status
- begin
+ begin
execute([command(:lssrc), "-s", @resource[:name]]).each do |line|
args = line.split
# This is the header line
next unless args[0] == @resource[:name]
- # PID is the 3rd field, but inoperative subsystems
+ # PID is the 3rd field, but inoperative subsystems
# skip this so split doesn't work right
state = case args[-1]
when "active" then :running