2019-04-25 12:39:49 +00:00
|
|
|
---
|
2020-02-06 23:45:31 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: 'Commands: alloc signal'
|
|
|
|
sidebar_title: signal
|
|
|
|
description: |
|
2019-04-25 12:39:49 +00:00
|
|
|
Signal a running allocation or task
|
|
|
|
---
|
|
|
|
|
2019-06-05 15:09:22 +00:00
|
|
|
# Command: alloc signal
|
2019-04-25 12:39:49 +00:00
|
|
|
|
|
|
|
The `alloc signal` command allows a user to perform an in place signal of an
|
|
|
|
an entire allocation or individual task.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2019-10-22 13:44:00 +00:00
|
|
|
```plaintext
|
2019-04-25 12:39:49 +00:00
|
|
|
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
|
|
|
|
|
2020-02-06 23:45:31 +00:00
|
|
|
@include 'general_options.mdx'
|
2019-04-25 12:39:49 +00:00
|
|
|
|
|
|
|
## Signal Options
|
|
|
|
|
2019-10-22 13:44:00 +00:00
|
|
|
- `-s`: Signal to send to the tasks. Valid options depend on the driver.
|
|
|
|
- `-verbose`: Display verbose output.
|
2019-04-25 12:39:49 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2020-05-18 20:53:06 +00:00
|
|
|
```shell-session
|
|
|
|
$ nomad alloc signal eb17e557
|
2019-04-25 12:39:49 +00:00
|
|
|
|
|
|
|
$ nomad alloc signal eb17e557 foo
|
|
|
|
Could not find task named: foo, found:
|
|
|
|
* test
|
|
|
|
<blocking>
|
|
|
|
```
|