open-nomad/website/source/docs/commands/alloc/signal.html.md.erb
2019-04-25 14:39:49 +02:00

45 lines
952 B
Plaintext

---
layout: "docs"
page_title: "Commands: alloc signal"
sidebar_current: "docs-commands-alloc-signal"
description: >
Signal a running allocation or task
---
# Command: alloc signal
The `alloc signal` command allows a user to perform an in place signal of an
an entire allocation or individual task.
## Usage
```
nomad alloc signal [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 signaled.
## General Options
<%= partial "docs/commands/_general_options" %>
## Signal Options
* `-s`: Signal to send to the tasks. Valid options depend on the driver.
* `-verbose`: Display verbose output.
## Examples
```
$ nomad alloc signal eb17e557
$ nomad alloc signal eb17e557 foo
Could not find task named: foo, found:
* test
<blocking>
```