forked from superfly/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
restart.html.markerb
35 lines (23 loc) · 1.04 KB
/
restart.html.markerb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: Restart an App or a Machine
objective:
layout: docs
nav: firecracker
order: 70
---
<%= partial "/docs/partials/v2_transition_banner" %>
Running `fly deploy` on an App creates a new release of the App, and restarts the Machines that it manages.
Sometimes you don't want to update anything; you just want to reboot and start the root file system afresh. (Yes, restarting wipes the ephemeral file system, just as a `fly deploy` or `fly machine update` will.)
## Restart every Machine in the App
`fly apps restart <app-name>` restarts all Machines in the App— Machines that belong to Fly Launch as well as any other standalone Machines you might have created within the App.
## Restart an Individual Machine
If one particular Machine needs a kick, restart it using `fly machine restart`:
```cmd
fly machine restart <machine-id>
```
You can provide multiple `<machine-id>`s to restart several Machines in one command.
### On a Nomad app
On Nomad apps the equivalent is `fly vm restart`:
```cmd
fly vm restart <instance-id> -a <app-name>
```