diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2022-07-28 17:03:25 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2022-08-09 17:15:40 +0200 |
| commit | ee199cd3baf3f2f207223749e0c1015432826bd3 (patch) | |
| tree | 6bc6a7d97cd629bed5fcd1593f8b9c6e1c217c75 /gnu/services | |
| parent | bc03aa438bef326d47aafaed99bc6de45e518c53 (diff) | |
services: qemu-guest-agent: Fix arguments to qemu-ga.
Fix the check for empty device path. Do not use --daemonize, since that is
handled by make-forkexec-constructor. Drop the --pidfile option which is
unused without --daemonize.
* gnu/services/virtualization.scm (qemu-guest-agent-shepherd-service): Modify
command arguments.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/services')
| -rw-r--r-- | gnu/services/virtualization.scm | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm index 41afe451c15..406752b35c6 100644 --- a/gnu/services/virtualization.scm +++ b/gnu/services/virtualization.scm | |||
| @@ -879,13 +879,11 @@ specified, the QEMU default path is used.")) | |||
| 879 | (provision '(qemu-guest-agent)) | 879 | (provision '(qemu-guest-agent)) |
| 880 | (documentation "Run the QEMU guest agent.") | 880 | (documentation "Run the QEMU guest agent.") |
| 881 | (start #~(make-forkexec-constructor | 881 | (start #~(make-forkexec-constructor |
| 882 | `(,(string-append #$qemu "/bin/qemu-ga") "--daemon" | 882 | `(,(string-append #$qemu "/bin/qemu-ga") |
| 883 | "--pidfile=/var/run/qemu-ga.pid" | 883 | "--statedir" "/var/run" |
| 884 | "--statedir=/var/run" | 884 | ,@(if (string-null? #$device) |
| 885 | ,@(if #$device | 885 | '() |
| 886 | (list (string-append "--path=" #$device)) | 886 | (list "--path" #$device))) |
| 887 | '())) | ||
| 888 | #:pid-file "/var/run/qemu-ga.pid" | ||
| 889 | #:log-file "/var/log/qemu-ga.log")) | 887 | #:log-file "/var/log/qemu-ga.log")) |
| 890 | (stop #~(make-kill-destructor)))))) | 888 | (stop #~(make-kill-destructor)))))) |
| 891 | 889 | ||
