Created
October 3, 2018 05:06
-
-
Save imvaskii/4f30a03bebb94bcff36afa5463486a6b to your computer and use it in GitHub Desktop.
Restart and wait 10 secs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ready services required by codedeploy | |
# restart codedeploy-agent and nginx server | |
function restart_svc_n_wait() { | |
gem install net-telnet -v 0.1.1 | |
puppet agent -tv | |
/etc/init.d/codedeploy-agent restart | |
/etc/init.d/nginx restart | |
# time to ready service to available | |
sleep 5 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment