Fixes for OpenBSD service provider when no rc script is found.

This commit is contained in:
Timo Mkinen 2012-03-12 14:28:09 +02:00
parent 76121fef9a
commit 7437b39889

View file

@ -119,15 +119,21 @@ Puppet::Type.type(:service).provide :openbsd, :parent => :base do
end
def startcmd
[self.rcscript, :start]
if File.exists?(self.rcscript)
[self.rcscript, :start]
end
end
def stopcmd
[self.rcscript, :stop]
if File.exists?(self.rcscript)
[self.rcscript, :stop]
end
end
def statuscmd
[self.rcscript, :check]
if File.exists?(self.rcscript)
[self.rcscript, :check]
end
end
end