Skip to content

wake-lock

Usage
wake-lock <command> [args...]

Runs a command under systemd-inhibit to prevent the system from idling or sleeping for the duration of the command.

Arguments:

command Command to run with sleep inhibition active
args... Arguments forwarded to the command

Returns:

0 Command ran and completed
1 No command provided
Examples
wake-lock rsync -avz src/ dest/