chef deploy start service and restart service in sequence
Posted
by
Ryan
on Server Fault
See other posts from Server Fault
or by Ryan
Published on 2013-10-18T06:35:30Z
Indexed on
2013/10/19
15:58 UTC
Read the original article
Hit count: 272
Chef stop and start service in sequence and would like to ask different procedure.
Step 1: framework bootstrap to jboss service
bash "bootstrap application" do
code <<-EOF
ant bootstrap
EOF
end
Step 2: then start jboss
service "jboss" do
action :start
end
Step 3: install application
bash "install application" do
code <<-EOF
ant install
EOF
end
in between step 2 and 3, ant install returns error because jboss is not started yet. but successful on the 2nd run. obviously step 3 doesnt know if the jboss already started.
how to do this on chef?
© Server Fault or respective owner