I'd recommend using systemd-inhibit to launch your scan. You can get pretty fancy with it but in its default state it'll inhibit sleep and shutdown until the program it launches ends. Check out its man page.
Statistics: Posted by wizard10000 — 2024-05-27 00:44