42 lines
859 B
Plaintext
42 lines
859 B
Plaintext
---
|
|
layout: docs
|
|
page_title: 'Commands: alloc restart'
|
|
sidebar_title: restart
|
|
description: |
|
|
Restart a running allocation or task
|
|
---
|
|
|
|
# Command: alloc restart
|
|
|
|
The `alloc restart` command allows a user to perform an in place restart of an
|
|
an entire allocation or individual task.
|
|
|
|
## Usage
|
|
|
|
```plaintext
|
|
nomad alloc restart [options] <allocation> <task>
|
|
```
|
|
|
|
This command accepts a single allocation ID and a task name. The task name must
|
|
be part of the allocation and the task must be currently running. The task name
|
|
is optional and if omitted every task in the allocation will be restarted.
|
|
|
|
## General Options
|
|
|
|
@include 'general_options.mdx'
|
|
|
|
## Restart Options
|
|
|
|
- `-verbose`: Display verbose output.
|
|
|
|
## Examples
|
|
|
|
```shell
|
|
$ nomad alloc restart eb17e557
|
|
|
|
$ nomad alloc restart eb17e557 foo
|
|
Could not find task named: foo, found:
|
|
* test
|
|
<blocking>
|
|
```
|