pols processes
List, follow and signal a sandbox's detached processes
A detached process is a command started with pols exec --detach: it keeps
running when pols exits or the connection drops. The sandbox keeps the last
1 MiB of its combined stdout and stderr, and at most 32 processes. Standby
freezes them with the sandbox; a stop ends them. A key limited to a sandbox
user sees only that user’s processes.
Usage
pols processes [flags]
pols processes [command]
Aliases
processes, ps
Subcommands
| Command | Description |
|---|---|
pols processes kill |
Send a signal to a detached process (default TERM) |
pols processes logs |
Print a detached process’s output |
pols processes ls |
List a running sandbox’s detached processes |
Flags
-h, --help help for processes
pols processes kill
Send a signal to a detached process’s session: the command and what it started, unless they started a session of their own.
Usage
pols processes kill SANDBOX PROCESS [flags]
Examples
pols processes kill web proc_k3f9a0b1c2d4
pols processes kill --signal KILL web proc_k3f9a0b1c2d4
Flags
-h, --help help for kill
-s, --signal string TERM, KILL, INT, HUP, QUIT, USR1, USR2, STOP or CONT (default "TERM")
pols processes logs
Print the output a detached process has written, from --offset (a byte offset
into its whole output). With -f, keep printing until it has ended, then exit
with its exit code; pols can be stopped and run again at any time.
Usage
pols processes logs SANDBOX PROCESS [flags]
Examples
pols processes logs web proc_k3f9a0b1c2d4
pols processes logs -f web proc_k3f9a0b1c2d4
Flags
-f, --follow keep printing until the process has ended
-h, --help help for logs
--offset int start at this byte of the output
pols processes ls
List a running sandbox’s detached processes
Usage
pols processes ls SANDBOX [flags]
Flags
-h, --help help for ls
The global flags work with this command too.