spec/integration/recipes/default.rb in itamae-1.0.0.beta5 vs spec/integration/recipes/default.rb in itamae-1.0.0.beta6
- old
+ new
@@ -87,8 +87,26 @@
execute "ps -C cron > /tmp/cron_running; true"
######
+package "nginx"
+
+service "nginx" do
+ action [:enable, :start]
+end
+
+execute "test -f /etc/rc3.d/S20nginx" # test
+execute "test $(ps h -C nginx | wc -l) -gt 0" # test
+
+service "nginx" do
+ action [:disable, :stop]
+end
+
+execute "test ! -f /etc/rc3.d/S20nginx" # test
+execute "test $(ps h -C nginx | wc -l) -eq 0" # test
+
+######
+
link "/tmp-link" do
to "/tmp"
end