LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pct-shutdown

gracefully shuts down a Proxmox LXC container

TLDR

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

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

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid