Fixes for OpenBSD service provider when no rc script is found.
This commit is contained in:
parent
76121fef9a
commit
7437b39889
1 changed files with 9 additions and 3 deletions
|
@ -119,15 +119,21 @@ Puppet::Type.type(:service).provide :openbsd, :parent => :base do
|
|||
end
|
||||
|
||||
def startcmd
|
||||
if File.exists?(self.rcscript)
|
||||
[self.rcscript, :start]
|
||||
end
|
||||
end
|
||||
|
||||
def stopcmd
|
||||
if File.exists?(self.rcscript)
|
||||
[self.rcscript, :stop]
|
||||
end
|
||||
end
|
||||
|
||||
def statuscmd
|
||||
if File.exists?(self.rcscript)
|
||||
[self.rcscript, :check]
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue