libvirt/src/qemu/virtqemud.init.in

27 lines
629 B
Plaintext
Raw Normal View History

#!/sbin/openrc-run
description="Virtualization qemu daemon"
VIRTQEMUD_OPTS=${VIRTQEMUD_OPTS:-"${VIRTQEMUD_OPTS}"}
VIRTQEMUD_TIMEOUT=${VIRTQEMUD_TERMTIMEOUT:-"TERM/25/KILL/5"}
command="@sbindir@/virtqemud"
command_args="-d ${VIRTQEMUD_OPTS}"
pidfile="@runstatedir@/virtqemud.pid"
retry="${VIRTQEMUD_TERMTIMEOUT}"
extra_started_commands="reload"
description_reload="re-exec the daemon to enforce configuration reload"
depend() {
use ceph dbus iscsid virtlockd
after nfs nfsmount
}
reload() {
ebegin "re-exec() virtqemud"
start-stop-daemon --signal SIGHUP \
--exec "${command}" --pidfile "${pidfile}"
}