2011-07-07 21:45:07 +08: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
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Virtualization daemon
|
|
|
|
Before=libvirt-guests.service
|
2012-07-09 23:52:55 +08:00
|
|
|
After=network.target
|
2012-12-05 11:43:04 +08:00
|
|
|
After=dbus.service
|
2013-03-01 04:46:19 +08:00
|
|
|
After=iscsid.service
|
2011-07-07 21:45:07 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=-/etc/sysconfig/libvirtd
|
|
|
|
ExecStart=@sbindir@/libvirtd $LIBVIRTD_ARGS
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
2012-03-22 22:01:12 +08:00
|
|
|
KillMode=process
|
2013-07-30 20:32:59 +08:00
|
|
|
Restart=on-failure
|
2012-01-13 01:47:30 +08:00
|
|
|
# Override the maximum number of opened files
|
|
|
|
#LimitNOFILE=2048
|
2011-07-07 21:45:07 +08:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|