void-packages/srcpkgs/libvirt/files/libvirt-generic/run

12 lines
168 B
Bash

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