Systemd no sleep

This commit is contained in:
Ansh Srivastava
2020-10-13 02:07:46 +00:00
committed by Risingprism
parent c3d42f3a01
commit 432715a83c
8 changed files with 54 additions and 29 deletions
+6
View File
@@ -0,0 +1,6 @@
[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