mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-31 18:33:11 +00:00
25 lines
482 B
Plaintext
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 $?
|
||
|
}
|