2011-07-07 14:02:32 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Virtual machine lock manager
|
|
|
|
Requires=virtlockd.socket
|
2018-01-19 14:54:00 +00:00
|
|
|
Requires=virtlockd-admin.socket
|
2017-01-17 15:45:57 +00:00
|
|
|
Before=libvirtd.service
|
2014-01-08 18:55:19 +00:00
|
|
|
Documentation=man:virtlockd(8)
|
2017-10-13 15:30:41 +00:00
|
|
|
Documentation=https://libvirt.org
|
2011-07-07 14:02:32 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=-/etc/sysconfig/virtlockd
|
2013-12-09 06:23:25 +00:00
|
|
|
ExecStart=@sbindir@/virtlockd $VIRTLOCKD_ARGS
|
|
|
|
ExecReload=/bin/kill -USR1 $MAINPID
|
2011-07-07 14:02:32 +00:00
|
|
|
# Loosing the locks is a really bad thing that will
|
|
|
|
# cause the machine to be fenced (rebooted), so make
|
|
|
|
# sure we discourage OOM killer
|
|
|
|
OOMScoreAdjust=-900
|
2017-03-15 16:51:51 +00:00
|
|
|
# Needs to allow for max guests * average disks per guest
|
|
|
|
# libvirtd.service written to expect 4096 guests, so if we
|
2017-10-18 09:19:30 +00:00
|
|
|
# allow for 10 disks per guest, we get:
|
|
|
|
LimitNOFILE=40960
|
2013-12-09 06:23:25 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
Also=virtlockd.socket
|