single-gpu-passthrough/systemd-no-sleep/libvirt-nosleep@.service

7 lines
222 B
SYSTEMD
Raw Permalink Normal View History

2020-10-13 02:07:46 +00:00
[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