#!/bin/sh
[ -r ./conf ] && . ./conf
sv check dbus >/dev/null || exit 1
sv check virtlogd >/dev/null || exit 1
# guest networking needs /dev/net/tun; vhost_net is only an accelerator
modprobe -q tun || exit 1
modprobe -q vhost_net
# iproute2's tc in /usr/sbin must win over the busybox applet in /sbin
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
exec 2>&1
exec libvirtd ${OPTS}
