]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
logging: Provide empty VIRTLOGD_ARGS in the unit file
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 9 May 2023 08:58:34 +0000 (11:58 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 9 May 2023 11:27:52 +0000 (14:27 +0300)
For all our daemons, we provide VIRXXXD_ARGS env var in the unit
file. The variable can then be overridden in corresponding file:

  EnvironmentFile=-@initconfdir@/virtxxxd

The daemon is then executed as:

  ExecStart=@sbindir@/virtxxxd $VIRTXXXD_ARGS

But virtlogd is exception, for no good reason. And while there
are probably no arguments we want to pass to virtlogd by default,
just mimic what we do for say virtlockd, where we also don't pass
any default argument.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/logging/virtlogd.service.in

index 158124e4d3d11d50ecbb5666dc69209856a9adbe..e4aecd46a76869e40f7366aeac417969939a40c8 100644 (file)
@@ -7,6 +7,7 @@ Documentation=man:virtlogd(8)
 Documentation=https://libvirt.org
 
 [Service]
+Environment=VIRTLOGD_ARGS=
 EnvironmentFile=-@initconfdir@/virtlogd
 ExecStart=@sbindir@/virtlogd $VIRTLOGD_ARGS
 ExecReload=/bin/kill -USR1 $MAINPID