diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2023-05-09 11:58:34 +0300 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2023-05-09 14:27:52 +0300 |
commit | 25ce34998ba713e2d0167315cb178cdebb02e7c8 (patch) | |
tree | c3b8c2bd734e0f17de4730f807e495fbcd741050 | |
parent | 236d2c0f4a08c44d8ddccda545d1cf32036ba3ce (diff) | |
download | libvirt-25ce34998ba713e2d0167315cb178cdebb02e7c8.tar.gz |
logging: Provide empty VIRTLOGD_ARGS in the unit file
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>
-rw-r--r-- | src/logging/virtlogd.service.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/logging/virtlogd.service.in b/src/logging/virtlogd.service.in index 158124e4d3..e4aecd46a7 100644 --- a/src/logging/virtlogd.service.in +++ b/src/logging/virtlogd.service.in @@ -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 |