pct-shutdown

gracefully shuts down a Proxmox LXC container

TLDR

Shutdown a container cleanly
$ pct shutdown 100
Shutdown with a timeout of 30 seconds
$ pct shutdown 100 --timeout 30
Force the container to stop if graceful shutdown fails
$ pct shutdown 100 --forceStop

SYNOPSIS

pct shutdown vmid [OPTIONS]

DESCRIPTION

pct shutdown triggers a clean shutdown of a Proxmox VE LXC container (via lxc-stop). Unlike pct stop, which abruptly kills all processes, this requests a graceful power-off so services can exit cleanly.If the container does not stop within the timeout, the command fails unless --forceStop is set.

PARAMETERS

vmid

The numeric ID of the container (100–999999999)
--timeout seconds
Wait maximal timeout seconds for a clean shutdown (default 60)
--forceStop
Make sure the container stops even if graceful shutdown fails

CAVEATS

The container must be running. Processes that ignore SIGTERM can block shutdown until the timeout. For an immediate hard stop, use pct stop instead.

HISTORY

pct shutdown is part of the Proxmox VE pct tool for managing LXC containers.

SEE ALSO

pct(1), pct-stop(1), pct-start(1), pct-reboot(1), lxc-stop(1)

RESOURCES

Documentation · Homepage