Merge pull request #110927 from Izorkin/fix-qemu-ga

nixos/qemu-guest-agent: fix start service
This commit is contained in:
Jörg Thalheim 2021-05-19 05:42:06 +01:00 committed by GitHub
commit 5b4915fb7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,9 +30,12 @@ in {
systemd.services.qemu-guest-agent = {
description = "Run the QEMU Guest Agent";
serviceConfig = {
ExecStart = "${cfg.package}/bin/qemu-ga";
ExecStart = "${cfg.package}/bin/qemu-ga --statedir /run/qemu-ga";
Restart = "always";
RestartSec = 0;
# Runtime directory and mode
RuntimeDirectory = "qemu-ga";
RuntimeDirectoryMode = "0755";
};
};
}