mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-31 10:23:09 +00:00
29 lines
752 B
Plaintext
29 lines
752 B
Plaintext
|
#!/sbin/openrc-run
|
||
|
|
||
|
description="Virtualization daemon"
|
||
|
|
||
|
LIBVIRTD_OPTS=${LIBVIRTD_OPTS:-"${LIBVIRTD_OPTS}"}
|
||
|
LIBVIRTD_TIMEOUT=${LIBVIRTD_TERMTIMEOUT:-"TERM/25/KILL/5"}
|
||
|
|
||
|
command="@sbindir@/libvirtd"
|
||
|
command_args="-d ${LIBVIRTD_OPTS}"
|
||
|
pidfile="@runstatedir@/libvirtd.pid"
|
||
|
retry="${LIBVIRTD_TERMTIMEOUT}"
|
||
|
|
||
|
extra_started_commands="reload"
|
||
|
description_reload="re-exec the daemon to enforce configuration reload"
|
||
|
|
||
|
depend() {
|
||
|
need virtlogd
|
||
|
@NEED_FIREWALLD@
|
||
|
use ceph dbus iscsid virtlockd
|
||
|
after cgconfig corosync ebtables iptables ip6tables nfs nfsmount ntp-client ntpdportmap rpc.statd sanlock xenconsoled
|
||
|
}
|
||
|
|
||
|
reload() {
|
||
|
ebegin "re-exec() libvirtd"
|
||
|
|
||
|
start-stop-daemon --signal SIGHUP \
|
||
|
--exec "${command}" --pidfile "${pidfile}"
|
||
|
}
|