diff --git a/chef/cookbooks/rsyslog/recipes/client.rb b/chef/cookbooks/rsyslog/recipes/client.rb index c3a77b7..655e4e2 100644 --- a/chef/cookbooks/rsyslog/recipes/client.rb +++ b/chef/cookbooks/rsyslog/recipes/client.rb @@ -25,7 +25,7 @@ package "dstat" do end execute "dstat" do - command "dstat -tcmndp --top-cpu >>/var/log/dstat.log &" + command "timeout 7200s dstat -tcmndp --top-cpu >>/var/log/dstat.log &" action :run end