libvirt/src/logging/virtlogd.service.in
Daniel P. Berrange 323a329b26 Import stripped down virtlockd code as basis of virtlogd
Copy the virtlockd codebase across to form the initial virlogd
code. Simple search & replace of s/lock/log/ and gut the remote
protocol & dispatcher. This gives us a daemon that starts up
and listens for connections, but does nothing with them.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2015-11-26 14:28:55 +00:00

18 lines
455 B
SYSTEMD

[Unit]
Description=Virtual machine log manager
Requires=virtlogd.socket
Documentation=man:virtlogd(8)
Documentation=http://libvirt.org
[Service]
EnvironmentFile=-/etc/sysconfig/virtlogd
ExecStart=@sbindir@/virtlogd $VIRTLOGD_ARGS
ExecReload=/bin/kill -USR1 $MAINPID
# Loosing 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]
Also=virtlogd.socket