---
name: "ncontext"
section: "8"
platform: "linux"
package: "util-vserver"
version: "0.30.216-pre3120-1.4+b11"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/ncontext"
---

# ncontext(8)

manages the creation of network contexts

## NAME

ncontext - manages the creation of network contexts

## DESCRIPTION

### Usage:

-

  ncontext **--create** \[--nid \<nid\>\] \<opts\>\* \[--\] \<program\> \<args\>\* ncontext \[(**--migrate** **--nid** \<nid\>)\|--migrate-self\]  \<opts\>\* \[--\] \<program\> \<args\>\*

### \<opts\> can be:

- **--disconnect**

  ...  start program in background

- **--silent**

  ...  be silent

- **--silentexist**

  ...  be silent when context exists already; useful for '--create' only

- **--syncsock** \<filename\>

  ...  before executing the program, send a message

-

  to the socket and wait until it closes. \<filename\> must be a SOCK\_STREAM unix socket

- **--syncmsg** \<message\>

  ...  use \<message\> as synchronization message; by

-

  default, 'ok' will be used

'ncontext **--create**' exits with code 254 iff the context exists already.

Please report bugs to vserver@list.linux-vserver.org

This program is part of util-vserver

## COPYRIGHT

Copyright © 2004-2006 Enrico Scholz\
 Copyright © 2006 Daniel Hokka Zakrisson This program is free software; you may redistribute it under the terms of the GNU General Public License.  This program has absolutely no warranty.
