open-nomad/website/source/docs/commands/alloc/restart.html.md.erb

42 lines
902 B
Plaintext
Raw Normal View History

2019-04-15 09:12:06 +00:00
---
layout: "docs"
page_title: "Commands: alloc restart"
sidebar_current: "docs-commands-alloc-restart"
description: >
Restart a running allocation or task
---
2019-06-05 15:09:22 +00:00
# Command: alloc restart
2019-04-15 09:12:06 +00:00
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>
2019-04-15 09:12:06 +00:00
```
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
<%= partial "docs/commands/_general_options" %>
## Restart Options
- `-verbose`: Display verbose output.
2019-04-15 09:12:06 +00:00
## Examples
```shell
2019-04-15 09:12:06 +00:00
$ nomad alloc restart eb17e557
$ nomad alloc restart eb17e557 foo
Could not find task named: foo, found:
* test
<blocking>
```