resume
Resume a suspended process
TLDR
Create a new resume.json file in the current working directory
Validate a resume.json against schema tests to ensure it complies with the standard
Export a resume locally in a stylized HTML or PDF format
Start a web server that serves a local resume.json
SYNOPSIS
systemctl resume
PARAMETERS
(No direct options)
The resume subcommand does not accept any direct options or arguments. General systemctl options (e.g., --no-block, --quiet) can be used before the subcommand, but are generally not relevant for the resume operation itself as it's typically an immediate action.
DESCRIPTION
The systemctl resume command is a component of the systemd init system, widely adopted across modern Linux distributions. Its primary function is to bring a system back from a suspended (suspend-to-RAM) or hibernated (suspend-to-disk) state to full operational capacity. This operation leverages the kernel's power management capabilities. It acts as the counterpart to commands like systemctl suspend and systemctl hibernate.
When a system is suspended, its state is preserved in RAM (S3 state). In hibernation, the state is saved to disk (S4 state). systemctl resume handles the recovery process for both. While systems typically resume automatically upon power-on after suspension, systemctl resume can be invoked directly by administrators or scripts for specific management tasks. It provides a standardized interface for managing system power states within the systemd ecosystem.
CAVEATS
This command requires appropriate permissions, typically root privileges or sudo.
The system must have been previously suspended or hibernated using a compatible power management command like systemctl suspend or systemctl hibernate.
Successful resumption depends on proper hardware support and driver functionality for power management.
System state corruption or power loss during suspension/hibernation can lead to issues upon resume.
RESUMING PROCESSES
To resume a process that has been stopped (e.g., by Ctrl+Z), the kill command can be used with the SIGCONT signal. For example, kill -CONT <PID>. Alternatively, for shell-managed jobs, the built-in commands fg (foreground) or bg (background) can be used to resume the process.
RESUMING FILE TRANSFERS
Many command-line download tools support resuming interrupted file transfers. The wget command uses the -c (continue) option (e.g., wget -c <URL>). Similarly, curl uses the -C - (continue from where left off) option (e.g., curl -C - <URL>).
RESUMING VIRTUAL MACHINES
Virtualization management tools often provide commands to suspend and resume virtual machines. For instance, with libvirt, the virsh command can be used: virsh resume <domain-name> will resume a suspended virtual machine guest.
UNFREEZING FILESYSTEMS
The fsfreeze command is used to suspend (freeze) access to a filesystem, typically for backup purposes. To unfreeze or resume normal operations on such a filesystem, the command is fsfreeze -u <mount-point>.
HISTORY
The systemctl resume command is part of systemd, which emerged as the dominant init system for Linux distributions in the early 2010s, replacing older systems like SysVinit and Upstart. Prior to systemd, system suspension and resumption were often managed by utilities from the pm-utils package (e.g., pm-suspend) or by directly manipulating kernel power interfaces in /sys/power/state. systemctl resume provides a modern, unified, and integrated approach to power management within the systemd framework.
SEE ALSO
systemctl(1), systemd.special(7), pm-suspend(8)