Sha256: 42e17baf1eb99fa2a8ecdb3cbf21d6fec88e1f7b7b2b654a958e6cbab5c9b1d3

Contents?: true

Size: 467 Bytes

Versions: 16

Compression:

Stored size: 467 Bytes

Contents

Puppet::Type.type(:service).provide :openbsd, :parent => :init do

  desc "Provider for OpenBSD's rc.d daemon control scripts"

  confine :operatingsystem => :openbsd
  defaultfor :operatingsystem => :openbsd

  def self.defpath
    ["/etc/rc.d"]
  end

  def startcmd
    [self.initscript, "-f", :start]
  end

  def restartcmd
    (@resource[:hasrestart] == :true) && [self.initscript, "-f", :restart]
  end

  def statuscmd
    [self.initscript, :check]
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
puppet-3.5.1 lib/puppet/provider/service/openbsd.rb
puppet-3.5.1-x86-mingw32 lib/puppet/provider/service/openbsd.rb
puppet-3.5.1.rc1 lib/puppet/provider/service/openbsd.rb
puppet-3.5.1.rc1-x86-mingw32 lib/puppet/provider/service/openbsd.rb
puppet-3.5.0.rc3 lib/puppet/provider/service/openbsd.rb
puppet-3.5.0.rc3-x86-mingw32 lib/puppet/provider/service/openbsd.rb
puppet-3.5.0.rc2 lib/puppet/provider/service/openbsd.rb
puppet-3.5.0.rc2-x86-mingw32 lib/puppet/provider/service/openbsd.rb
puppet-3.5.0.rc1 lib/puppet/provider/service/openbsd.rb
puppet-3.5.0.rc1-x86-mingw32 lib/puppet/provider/service/openbsd.rb
puppet-3.4.3 lib/puppet/provider/service/openbsd.rb
puppet-3.4.2 lib/puppet/provider/service/openbsd.rb
puppet-3.4.1 lib/puppet/provider/service/openbsd.rb
puppet-3.4.0 lib/puppet/provider/service/openbsd.rb
puppet-3.4.0.rc2 lib/puppet/provider/service/openbsd.rb
puppet-3.4.0.rc1 lib/puppet/provider/service/openbsd.rb