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 end
def startcmd def startcmd
[self.rcscript, :start] if File.exists?(self.rcscript)
[self.rcscript, :start]
end
end end
def stopcmd def stopcmd
[self.rcscript, :stop] if File.exists?(self.rcscript)
[self.rcscript, :stop]
end
end end
def statuscmd def statuscmd
[self.rcscript, :check] if File.exists?(self.rcscript)
[self.rcscript, :check]
end
end end
end end