'service': 'virtlockd',
'service_in': files('virtlockd.service.in'),
'service_extra_in': [
+ systemd_service_oomscoreadjust_extra_in,
systemd_service_limitnofile_extra_in,
],
'name': 'locking',
EnvironmentFile=-@initconfdir@/virtlockd
ExecStart=@sbindir@/virtlockd $VIRTLOCKD_ARGS
ExecReload=/bin/kill -USR1 $MAINPID
-# Losing 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
[Install]
WantedBy=multi-user.target
'service': 'virtlogd',
'service_in': files('virtlogd.service.in'),
'service_extra_in': [
+ systemd_service_oomscoreadjust_extra_in,
systemd_service_limitnofile_extra_in,
],
'name': 'logging',
EnvironmentFile=-@initconfdir@/virtlogd
ExecStart=@sbindir@/virtlogd $VIRTLOGD_ARGS
ExecReload=/bin/kill -USR1 $MAINPID
-# Losing the logs is a really bad thing that will
-# cause the machine to be fenced (rebooted), so make
-# sure we discourage OOM killer
-OOMScoreAdjust=-900
[Install]
WantedBy=multi-user.target
systemd_service_limitnofile_extra_in = files('virtd.service.limitnofile.extra.in')
systemd_service_tasksmax_extra_in = files('virtd.service.tasksmax.extra.in')
systemd_service_limitmemlock_extra_in = files('virtd.service.limitmemlock.extra.in')
+systemd_service_oomscoreadjust_extra_in = files('virtd.service.oomscoreadjust.extra.in')
# virt_daemon_units:
# generate libvirt daemon systemd unit files
--- /dev/null
+[Service]
+# Losing this daemon is a really bad thing that will
+# cause the machine to be fenced (rebooted), so make
+# sure we discourage OOM killer
+OOMScoreAdjust=-900