Skip to content

Commit

Permalink
Document how to use systemd-run
Browse files Browse the repository at this point in the history
It is also useful when testing local changes, I just run:

sudo systemd-run -p Delegate=yes -p KillMode=process bin/containerd

Signed-off-by: Alban Crequy <alban@kinvolk.io>
  • Loading branch information
alban committed Jun 27, 2018
1 parent 08f7ee9 commit 6ef65b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/ops.md
Expand Up @@ -69,6 +69,10 @@ This is not what we want.
As ops, we want to be able to upgrade containerd and allow existing containers to keep running without interruption.
Setting `KillMode` to `process` ensures that systemd only kills the containerd daemon and not any child processes such as the shims and containers.

The following `systemd-run` command starts containerd in a similar way:
```
sudo systemd-run -p Delegate=yes -p KillMode=process /usr/local/bin/containerd
```

## Base Configuration

Expand Down

0 comments on commit 6ef65b7

Please sign in to comment.