single-gpu-passthrough/systemd-no-sleep/libvirt-nosleep@.service
2020-10-13 02:07:46 +00:00

7 lines
222 B
Desktop File
Executable File

[Unit]
Description=Preventing sleep while libvirt domain "%i" is running
[Service]
Type=simple
ExecStart=/usr/bin/systemd-inhibit --what=sleep --why="Libvirt domain \"%i\" is running" --who=%U --mode=block sleep infinity