diff --git a/pages/common/retry.md b/pages/common/retry.md new file mode 100644 index 0000000000..c5538f44a8 --- /dev/null +++ b/pages/common/retry.md @@ -0,0 +1,16 @@ +# retry + +> Repeat command until it succeeds or a criterion is met. +> More information: . + +- Retry a command until it succeeds: + +`retry {{command}}` + +- Retry a command every n seconds until it succeeds: + +`retry --delay={{n}} {{command}}` + +- Give up after n attempts: + +`retry --times={{n}} {{command}}`