end
end
end
+
+if File.exists?("/proc/xen")
+ watchdog = "xen_wdt"
+elsif node[:kernel][:modules].include?("i6300esb")
+ watchdog = "none"
+end
+
+if watchdog
+ package "watchdog"
+
+ template "/etc/default/watchdog" do
+ source "watchdog.erb"
+ owner "root"
+ group "root"
+ mode 0644
+ variables :module => watchdog
+ end
+
+ service "watchdog" do
+ action [ :enable, :start ]
+ end
+end
--- /dev/null
+# DO NOT EDIT - This file is being maintained by Chef
+
+# Start watchdog at boot time? 0 or 1
+run_watchdog=1
+# Load module before starting watchdog
+watchdog_module="<%= @module %>"
+# Specify additional watchdog options here (see manpage).