2016-04-11 22:36:20 +00:00
|
|
|
# NB we don't use socket activation. When libvirtd starts it will
|
|
|
|
# spawn any virtual machines registered for autostart. We want this
|
|
|
|
# to occur on every boot, regardless of whether any client connects
|
|
|
|
# to a socket. Thus socket activation doesn't have any benefit
|
|
|
|
|
2011-07-07 13:45:07 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Virtualization daemon
|
|
|
|
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
|
2014-01-08 18:55:19 +00:00
|
|
|
Documentation=man:libvirtd(8)
|
|
|
|
Documentation=http://libvirt.org
|
2011-07-07 13:45:07 +00:00
|
|
|
|
|
|
|
[Service]
|
2014-02-21 12:06:42 +00:00
|
|
|
Type=notify
|
2011-07-07 13:45:07 +00:00
|
|
|
EnvironmentFile=-/etc/sysconfig/libvirtd
|
|
|
|
ExecStart=@sbindir@/libvirtd $LIBVIRTD_ARGS
|
|
|
|
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
|
2012-01-12 17:47:30 +00:00
|
|
|
# Override the maximum number of opened files
|
|
|
|
#LimitNOFILE=2048
|
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
|