table of contents
SYSTEMD-INHIBIT(1) | systemd-inhibit | SYSTEMD-INHIBIT(1) |
NAME¶
systemd-inhibit - Execute a program with an inhibition lock taken
SYNOPSIS¶
systemd-inhibit [OPTIONS...] [COMMAND] [ARGUMENTS...]
systemd-inhibit [OPTIONS...] --list
DESCRIPTION¶
systemd-inhibit may be used to execute a program with a shutdown, sleep or idle inhibitor lock taken. The lock will be acquired before the specified command line is executed and released afterwards.
Inhibitor locks may be used to block or delay system sleep and shutdown requests from the user, as well as automatic idle handling of the OS. This is useful to avoid system suspends while an optical disc is being recorded, or similar operations that should not be interrupted.
For more information see the Inhibitor Lock Developer Documentation[1].
OPTIONS¶
The following options are understood:
--what=
--who=
--why=
--mode=
--list
-h, --help
--version
EXIT STATUS¶
Returns the exit status of the executed program.
EXAMPLE¶
# systemd-inhibit wodim foobar.iso
This burns the ISO image foobar.iso on a CD using wodim(1), and inhibits system sleeping, shutdown and idle while doing so.
SEE ALSO¶
NOTES¶
- 1.
- Inhibitor Lock Developer Documentation
systemd 219 |