Skip to content

Instantly share code, notes, and snippets.

@mabitt
Created April 12, 2017 02:15
Show Gist options
  • Save mabitt/96c774ed0ddfec6269fcb51b56906e02 to your computer and use it in GitHub Desktop.
Save mabitt/96c774ed0ddfec6269fcb51b56906e02 to your computer and use it in GitHub Desktop.
Fleetctl restart (capistrano/bash)
fleetctl stop #{fetch(:application)}-#{fetch(:app_env)}.service
printf "waiting:> for %s to stop #{fetch(:application)}-#{fetch(:app_env)};"
is_running=1
while [ $is_running -ne 0 ]
do is_running=`fleetctl list-units | grep running | grep #{fetch(:application)}-#{fetch(:app_env)} | wc -l`
sleep 1
printf "."
done
echo ""
fleetctl start #{fetch(:application)}-#{fetch(:app_env)}.service
CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment