Created
April 12, 2017 02:15
-
-
Save mabitt/96c774ed0ddfec6269fcb51b56906e02 to your computer and use it in GitHub Desktop.
Fleetctl restart (capistrano/bash)
This file contains 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
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