]> xenbits.xensource.com Git - libvirt.git/commit
Add support for systemd init service
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 7 Jul 2011 13:45:07 +0000 (14:45 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 18 Nov 2011 16:16:02 +0000 (16:16 +0000)
commit4789fb2e4e5bbb9132310a802a90f0ce85ec0016
treea11cf147944287ba0fb05a9d6acbca6852a40403
parentbfe952c9b2a74bb9b2490373f2f0b3f607b09232
Add support for systemd init service

This patch adds support for a systemd init service for libvirtd
and libvirt-guests. The libvirtd.service is *not* written to use
socket activation, since we want libvirtd to start on boot so it
can do guest auto-start.

The libvirt-guests.service is pretty lame, just exec'ing the
original init script for now. Ideally we would factor out the
functionality, into some shared tool.

Instead of

  ./configure --with-init-script=redhat

You can now do

  ./configure --with-init-script=systemd

Or better still:

  ./configure --with-init-script=systemd+redhat

We can also now support install of the upstart init script

* configure.ac: Add systemd, and systemd+redhat options to
  --with-init-script option
* daemon/Makefile.am: Install systemd services
* daemon/libvirtd.sysconf: Add note about unused env variable
  with systemd
* daemon/libvirtd.service.in: libvirtd systemd service unit
* libvirt.spec.in: Add scripts to installing systemd services
  and migrating from legacy init scripts
* tools/Makefile.am: Install systemd services
* tools/libvirt-guests.init.sh: Rename to tools/libvirt-guests.init.in
* tools/libvirt-guests.service.in: systemd service unit
configure.ac
daemon/.gitignore
daemon/Makefile.am
daemon/libvirtd.service.in [new file with mode: 0644]
daemon/libvirtd.sysconf
libvirt.spec.in
po/POTFILES.in
tools/Makefile.am
tools/libvirt-guests.service.in [new file with mode: 0644]