github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/website/pages/docs/commands/alloc/restart.mdx (about) 1 --- 2 layout: docs 3 page_title: 'Commands: alloc restart' 4 sidebar_title: restart 5 description: | 6 Restart a running allocation or task 7 --- 8 9 # Command: alloc restart 10 11 The `alloc restart` command allows a user to perform an in place restart of an 12 an entire allocation or individual task. 13 14 ## Usage 15 16 ```plaintext 17 nomad alloc restart [options] <allocation> <task> 18 ``` 19 20 This command accepts a single allocation ID and a task name. The task name must 21 be part of the allocation and the task must be currently running. The task name 22 is optional and if omitted every task in the allocation will be restarted. 23 24 ## General Options 25 26 @include 'general_options.mdx' 27 28 ## Restart Options 29 30 - `-verbose`: Display verbose output. 31 32 ## Examples 33 34 ```shell-sessionnomad alloc restart eb17e557 35 36 $ nomad alloc restart eb17e557 foo 37 Could not find task named: foo, found: 38 * test 39 <blocking> 40 ```