summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-06-16 11:36:21 -0500
committerLuke Kanies <luke@madstop.com>2008-06-16 11:36:21 -0500
commitaedfa2bc06278d7bb3618cd39ea04f8aa8a9d846 (patch)
treed53fbf3794a30a1aecc2abb56cc13db26b87ce3a /lib
parent5273b22b4fda6f9aa7a8366a1dfbae092594d391 (diff)
downloadpuppet-aedfa2bc06278d7bb3618cd39ea04f8aa8a9d846.tar.gz
puppet-aedfa2bc06278d7bb3618cd39ea04f8aa8a9d846.tar.xz
puppet-aedfa2bc06278d7bb3618cd39ea04f8aa8a9d846.zip
Fixed #1369 - the init service provider now supports HP-UX.
I've only added an integration test for the provider, since that's all I've changed; none of the service providers have rspec tests yet.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/provider/service/init.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/provider/service/init.rb b/lib/puppet/provider/service/init.rb
index 3081d0eb8..e95fbd0f9 100755
--- a/lib/puppet/provider/service/init.rb
+++ b/lib/puppet/provider/service/init.rb
@@ -13,6 +13,8 @@ Puppet::Type.type(:service).provide :init, :parent => :base do
case Facter["operatingsystem"].value
when "FreeBSD":
@defpath = ["/etc/rc.d", "/usr/local/etc/rc.d"]
+ when "HP-UX":
+ @defpath = "/sbin/init.d"
else
@defpath = "/etc/init.d"
end