mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 18:15:25 +00:00
49c6fe6201
There is plenty of distributions that haven't switched to systemd nor they force their users to (Gentoo, Alpine Linux to name a few). With the daemon split merged their only option is to still use the monolithic daemon which will go away eventually. Provide init scripts for these distros too. For now, I'm not introducing config files which would correspond to the init files except for libvirtd and virtproxyd init scripts where it might be desirable to tweak the command line of corresponding daemons. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
29 lines
795 B
Plaintext
29 lines
795 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
description="Virtualization daemon proxy"
|
|
|
|
VIRTPROXYD_OPTS=${VIRTPROXYD_OPTS:-"${VIRTPROXYD_OPTS}"}
|
|
VIRTPROXYD_TIMEOUT=${VIRTPROXYD_TERMTIMEOUT:-"TERM/25/KILL/5"}
|
|
|
|
command="@sbindir@/virtproxyd"
|
|
command_args="-d ${VIRTPROXYD_OPTS}"
|
|
start_stop_daemon_args="--env KRB5_KTNAME=/etc/libvirt/krb5.tab"
|
|
pidfile="@runstatedir@/virtproxyd.pid"
|
|
retry="${VIRTPROXYD_TERMTIMEOUT}"
|
|
|
|
extra_started_commands="reload"
|
|
description_reload="re-exec the daemon to enforce configuration reload"
|
|
|
|
depend() {
|
|
use dbus
|
|
after cgconfig corosync ebtables iptables ip6tables nfs nfsmount ntp-client ntpdportmap rpc.statd sanlock xenconsoled
|
|
need net
|
|
}
|
|
|
|
reload() {
|
|
ebegin "re-exec() virtproxyd"
|
|
|
|
start-stop-daemon --signal SIGHUP \
|
|
--exec "${command}" --pidfile "${pidfile}"
|
|
}
|