libvirt/src/locking/virtlockd.init.in
Ryan Moeller f4b1c020a2 Add virtlockd and virtlogd init scripts
These are missing files for OpenRC.

Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2020-02-22 17:11:54 +01:00

25 lines
482 B
Plaintext

#!/sbin/openrc-run
description="Virtualization locking daemon"
VIRTLOCKD_OPTS=${VIRTLOCKD_OPTS:-"${VIRTLOCKD_OPTS}"}
command="@sbindir@/virtlockd"
command_args="${VIRTLOCKD_OPTS}"
supervisor="supervise-daemon"
extra_started_commands="reload"
description_reload="re-exec the daemon to enforce configuration reload"
depend() {
keyword -shutdown
after nfs nfsmount
}
reload() {
ebegin "re-exec() virtlockd"
${supervisor} ${RC_SVCNAME} --signal HUP
eend $?
}