Skip to content

Instantly share code, notes, and snippets.

@imvaskii
Created October 3, 2018 05:06
Show Gist options
  • Save imvaskii/4f30a03bebb94bcff36afa5463486a6b to your computer and use it in GitHub Desktop.
Save imvaskii/4f30a03bebb94bcff36afa5463486a6b to your computer and use it in GitHub Desktop.
Restart and wait 10 secs
# 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