systemd-inhibit

Execute a process while inhibiting shutdown/sleep/idle.

Usage: systemd-inhibit [OPTIONS...] COMMAND ...