lib/hookit/resource/service.rb in hookit-0.10.0 vs lib/hookit/resource/service.rb in hookit-0.11.0
- old
+ new
@@ -47,15 +47,10 @@
def enable!
case init
when :smf
run_command! "svcadm enable -s #{"-r" if recursive} #{service_name}"
when :runit
- # fail fast if we don't have an runit run configuration
- if not File.exist?("/etc/service/#{service_name}/run")
- raise Hookit::Error::MissingConfiguration "Expecting service configuration file at: /etc/service/#{service_name}/run"
- end
-
# register and potentially start the service
run_command! "sv start #{service_name}", false
# runit can take up to 5 seconds to register the service before the
# service starts to run. We'll keep checking the status for up to
@@ -117,6 +112,6 @@
end
end
end
end
-end
\ No newline at end of file
+end