lib/puppet/provider/service/runit.rb in puppet-3.2.4 vs lib/puppet/provider/service/runit.rb in puppet-3.3.0.rc2
- old
+ new
@@ -7,16 +7,17 @@
This provider manages daemons running supervised by Runit.
When detecting the service directory it will check, in order of preference:
* `/service`
- * `/var/service`
* `/etc/service`
+ * `/var/service`
The daemon directory should be in one of the following locations:
* `/etc/sv`
+ * `/var/lib/service`
or this can be overriden in the service resource parameters::
service { "myservice":
provider => "runit",
@@ -44,10 +45,10 @@
if FileTest.exist?(path)
@defpath = path
break
end
end
- raise "Could not find the daemon directory (tested [/var/lib/service,/etc])" unless @defpath
+ raise "Could not find the daemon directory (tested [/etc/sv,/var/lib/service])" unless @defpath
end
@defpath
end
end