[libvirt] [PATCH] remote: remove obsolete params from sysconf file

Jiri Denemark jdenemar at redhat.com
Wed Jul 3 15:21:44 UTC 2019


On Wed, Jul 03, 2019 at 14:57:50 +0100, Daniel P. Berrangé wrote:
> On Wed, Jul 03, 2019 at 03:35:46PM +0200, Jiri Denemark wrote:
> > On Wed, Jul 03, 2019 at 14:14:55 +0100, Daniel P. Berrangé wrote:
> > > The LIBVIRTD_CONFIG and LIBVIRTD_NOFILES_LIMIT parameters were only
> > > honoured when using the sysvinit scripts. This was removed already in
> > > 
> > >       commit 912fe2df9d8628b2f3d54485f1cb919cb124d07a
> > >       Author: Andrea Bolognani <abologna at redhat.com>
> > >       Date:   Fri Mar 15 16:47:27 2019 +0100
> > > 
> > >         Drop support for "Red Hat" init scripts
> > > 
> > > so the parameters can safely be dropped.
> > > 
> > > Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> > > ---
> > >  src/remote/libvirtd.sysconf | 18 +-----------------
> > >  1 file changed, 1 insertion(+), 17 deletions(-)
> > > 
> > > diff --git a/src/remote/libvirtd.sysconf b/src/remote/libvirtd.sysconf
> > > index f15e5956eb..60a47c252f 100644
> > > --- a/src/remote/libvirtd.sysconf
> > > +++ b/src/remote/libvirtd.sysconf
> > > @@ -1,8 +1,4 @@
> > > -# Override the default config file
> > > -# NOTE: This setting is no longer honoured if using
> > > -# systemd. Set '--config /etc/libvirt/libvirtd.conf'
> > > -# in LIBVIRTD_ARGS instead.
> > > -#LIBVIRTD_CONFIG=/etc/libvirt/libvirtd.conf
> > > +# Customizations for the libvirtd.service systemd unit
> > >  
> > >  # Listen for TCP/IP connections
> > >  # NB. must setup TLS/SSL keys prior to using this
> > > @@ -19,15 +15,3 @@
> > >  #QEMU_AUDIO_DRV=sdl
> > >  #
> > >  #SDL_AUDIODRIVER=pulse
> > > -
> > > -# Override the maximum number of opened files.
> > > -# This only works with traditional init scripts.
> > > -# In the systemd world, the limit can only be changed by overriding
> > > -# LimitNOFILE for libvirtd.service. To do that, just create a *.conf
> > > -# file in /etc/systemd/system/libvirtd.service.d/ (for example
> > > -# /etc/systemd/system/libvirtd.service.d/openfiles.conf) and write
> > > -# the following two lines in it:
> > > -#   [Service]
> > > -#   LimitNOFILE=2048
> > 
> > I think this hint on how to customize the option with systemd is quite
> > helpful and we should keep it.
> 
> We already have a LimitNOFILE set in the libvirtd.service doc.

OK, which means the hint would go there, but...

> Overriding the service defaults is covered by systemd docs in
> general & doesn't need repeating by libvirt.

you're right. I remember it was not so easy to find the right way of
overriding the settings for a systemd service at the time I wrote this
hint. Also it was meant as an upgrade path. But, I just tried to search
for this and found the right answer pretty quickly.

Thus,

Reviewed-by: Jiri Denemark <jdenemar at redhat.com>




More information about the libvir-list mailing list