mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-07 13:35:21 +00:00
25 lines
476 B
Plaintext
25 lines
476 B
Plaintext
|
#!/sbin/openrc-run
|
||
|
|
||
|
description="Virtualization logging daemon"
|
||
|
|
||
|
VIRTLOGD_OPTS=${VIRTLOGD_OPTS:-"${VIRTLOGD_OPTS}"}
|
||
|
|
||
|
command="@sbindir@/virtlogd"
|
||
|
command_args="${VIRTLOGD_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() virtlogd"
|
||
|
|
||
|
${supervisor} ${RC_SVCNAME} --signal HUP
|
||
|
eend $?
|
||
|
}
|