libvirt/src/remote/libvirtd.init.in
Andrea Bolognani 68d08cf2f2 remote: Drop KRB5_KTNAME override
When the comment in libvirtd.sasl was last updated with

  commit fe772f24a6
  Author: Cole Robinson <crobinso@redhat.com>
  Date:   Sat Oct 20 14:10:03 2012 -0400

    daemon: Avoid 'Could not find keytab file' in syslog

it was noted that only old versions of kerberos would need the
environment variable to be set: that was more than seven years
ago, so it's safe to assume that none of our current target
platforms still requires that hack and setting the appropriate
key in the configuration file will be enough.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2020-04-03 11:51:00 +02:00

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}"
}