2011-07-07 13:45:07 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Virtualization daemon
|
2016-09-06 13:16:24 +00:00
|
|
|
Requires=virtlogd.socket
|
2017-01-17 15:45:57 +00:00
|
|
|
Requires=virtlockd.socket
|
2019-08-22 13:48:46 +00:00
|
|
|
# Use Wants instead of Requires so that users
|
|
|
|
# can disable these three .socket units to revert
|
|
|
|
# to a traditional non-activation deployment setup
|
|
|
|
Wants=libvirtd.socket
|
|
|
|
Wants=libvirtd-ro.socket
|
|
|
|
Wants=libvirtd-admin.socket
|
2018-01-10 22:06:41 +00:00
|
|
|
Wants=systemd-machined.service
|
2011-07-07 13:45:07 +00:00
|
|
|
Before=libvirt-guests.service
|
2012-07-09 15:52:55 +00:00
|
|
|
After=network.target
|
2012-12-05 03:43:04 +00:00
|
|
|
After=dbus.service
|
2013-02-28 20:46:19 +00:00
|
|
|
After=iscsid.service
|
2014-03-03 10:26:43 +00:00
|
|
|
After=apparmor.service
|
2015-08-25 15:07:46 +00:00
|
|
|
After=local-fs.target
|
|
|
|
After=remote-fs.target
|
2018-06-07 14:44:34 +00:00
|
|
|
After=systemd-logind.service
|
2018-01-10 22:06:41 +00:00
|
|
|
After=systemd-machined.service
|
2019-07-31 18:02:48 +00:00
|
|
|
After=xencommons.service
|
|
|
|
Conflicts=xendomains.service
|
2014-01-08 18:55:19 +00:00
|
|
|
Documentation=man:libvirtd(8)
|
2017-10-13 15:30:41 +00:00
|
|
|
Documentation=https://libvirt.org
|
2011-07-07 13:45:07 +00:00
|
|
|
|
|
|
|
[Service]
|
2014-02-21 12:06:42 +00:00
|
|
|
Type=notify
|
2019-07-18 15:17:07 +00:00
|
|
|
EnvironmentFile=-@sysconfdir@/sysconfig/libvirtd
|
2019-08-22 13:51:06 +00:00
|
|
|
ExecStart=@sbindir@/libvirtd $LIBVIRTD_ARGS
|
2011-07-07 13:45:07 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2012-03-22 14:01:12 +00:00
|
|
|
KillMode=process
|
2013-07-30 12:32:59 +00:00
|
|
|
Restart=on-failure
|
2017-03-15 16:51:51 +00:00
|
|
|
# At least 1 FD per guest, often 2 (eg qemu monitor + qemu agent).
|
|
|
|
# eg if we want to support 4096 guests, we'll typically need 8192 FDs
|
|
|
|
# If changing this, also consider virtlogd.service & virtlockd.service
|
|
|
|
# limits which are also related to number of guests
|
|
|
|
LimitNOFILE=8192
|
2017-04-19 18:54:33 +00:00
|
|
|
# The cgroups pids controller can limit the number of tasks started by
|
|
|
|
# the daemon, which can limit the number of domains for some hypervisors.
|
|
|
|
# A conservative default of 8 tasks per guest results in a TasksMax of
|
|
|
|
# 32k to support 4096 guests.
|
|
|
|
TasksMax=32768
|
2011-07-07 13:45:07 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
2015-12-07 12:46:27 +00:00
|
|
|
Also=virtlockd.socket
|
|
|
|
Also=virtlogd.socket
|
2019-04-30 15:41:10 +00:00
|
|
|
Also=libvirtd.socket
|
|
|
|
Also=libvirtd-ro.socket
|