void-packages/srcpkgs/libvirt/files/libvirt-generic/run
Andrew J. Hesford 4c396d23a6 libvirt: update to 7.10.0, add modular services
For awhile, libvirt has moved away from the monolithic libvirtd in favor
of modular virt${DRIVER}d daemons that each manage a specific function.
This is the default behavior for per-user "session" instances that
launch on demand. We still provide a legacy libvirtd service, but let's
add services for the modular daemons favored by upstream.
2021-12-05 10:03:25 -05:00

10 lines
158 B
Bash

#!/bin/sh
sv check dbus >/dev/null || exit 1
# Take daemon name from service name
daemon="${PWD##*/}"
[ -f ./conf ] && . ./conf
exec "$daemon" $OPTS 2>&1