spec/integration/recipes/default.rb in itamae-1.0.0.beta2 vs spec/integration/recipes/default.rb in itamae-1.0.0.beta3
- old
+ new
@@ -70,6 +70,21 @@
file "/tmp/never_exist2" do
not_if "exit 0"
end
+######
+
+service "cron" do
+ action :stop
+end
+
+execute "ps axu | grep cron | grep -v grep > /tmp/cron_stopped; true"
+
+service "cron" do
+ action :start
+end
+
+execute "ps axu | grep cron | grep -v grep > /tmp/cron_running; true"
+
+######