-a <action>
Short-cut for commonly used operations.
+ Note: "fast" options take bricks out of rotation
+ immediately, which could interrupt active transactions.
+ Avoid use of "fast" options in production.
+
Supported actions:
roll - detach, restart services + apache
+ roll-fast - detach w/o wait, restart services + apache
roll-attach - detach, restart services + apache, attach
+ roll-attach-fast - detach w/o wait, restart services + apache, attach
stop - detach, stop services, stop apache
+ stop-fast - detach without wait, stop services, stop apache
start - start services, start apache
start-attach - start services, start apache, attach.
detach - detach only
if [ -n "$ACTION" ]; then
if [ "$ACTION" = "roll" ]; then
EG_UPDATER_OPS="-o"
+ elif [ "$ACTION" = "roll-fast" ]; then
+ EG_UPDATER_OPS="-do"
elif [ "$ACTION" = "roll-attach" ]; then
if [ -n "$PROMPT_ATTACH" ]; then
EG_UPDATER_OPS="-og"
else
EG_UPDATER_OPS="-oa"
fi;
+ elif [ "$ACTION" = "roll-attach-fast" ]; then
+ if [ -n "$PROMPT_ATTACH" ]; then
+ EG_UPDATER_OPS="-dog"
+ else
+ EG_UPDATER_OPS="-doa"
+ fi;
elif [ "$ACTION" = "stop" ]; then
EG_UPDATER_OPS="-l"
+ elif [ "$ACTION" = "stop-fast" ]; then
+ EG_UPDATER_OPS="-ld"
elif [ "$ACTION" = "start" ]; then
EG_UPDATER_OPS="-m"
elif [ "$ACTION" = "start-attach" ]; then