提交 f4b1c020 编写于 作者: R Ryan Moeller 提交者: Michal Privoznik

Add virtlockd and virtlogd init scripts

These are missing files for OpenRC.
Signed-off-by: NRyan Moeller <ryan@iXsystems.com>
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 2f067570
...@@ -79,6 +79,13 @@ VIRTLOCKD_UNIT_FILES_IN = \ ...@@ -79,6 +79,13 @@ VIRTLOCKD_UNIT_FILES_IN = \
SYSTEMD_UNIT_FILES += $(notdir $(VIRTLOCKD_UNIT_FILES_IN:%.in=%)) SYSTEMD_UNIT_FILES += $(notdir $(VIRTLOCKD_UNIT_FILES_IN:%.in=%))
SYSTEMD_UNIT_FILES_IN += $(VIRTLOCKD_UNIT_FILES_IN) SYSTEMD_UNIT_FILES_IN += $(VIRTLOCKD_UNIT_FILES_IN)
OPENRC_INIT_FILES += \
virtlockd.init \
$(NULL)
OPENRC_INIT_FILES_IN += \
virtlockd.init.in \
$(NULL)
noinst_LTLIBRARIES += libvirt_driver_lock.la noinst_LTLIBRARIES += libvirt_driver_lock.la
libvirt_la_BUILT_LIBADD += libvirt_driver_lock.la libvirt_la_BUILT_LIBADD += libvirt_driver_lock.la
...@@ -275,6 +282,8 @@ locking/lock_daemon_dispatch_stubs.h: $(LOCK_PROTOCOL) \ ...@@ -275,6 +282,8 @@ locking/lock_daemon_dispatch_stubs.h: $(LOCK_PROTOCOL) \
virLockSpaceProtocol VIR_LOCK_SPACE_PROTOCOL \ virLockSpaceProtocol VIR_LOCK_SPACE_PROTOCOL \
$(LOCK_PROTOCOL) > locking/lock_daemon_dispatch_stubs.h $(LOCK_PROTOCOL) > locking/lock_daemon_dispatch_stubs.h
virtlockd.init: locking/virtlockd.init.in $(top_builddir)/config.status
$(AM_V_GEN)$(SED) $(COMMON_UNIT_VARS) $< > $@-t && mv $@-t $@
virtlockd.service: locking/virtlockd.service.in $(top_builddir)/config.status virtlockd.service: locking/virtlockd.service.in $(top_builddir)/config.status
$(AM_V_GEN)sed $(COMMON_UNIT_VARS) $< > $@-t && mv $@-t $@ $(AM_V_GEN)sed $(COMMON_UNIT_VARS) $< > $@-t && mv $@-t $@
......
#!/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 $?
}
...@@ -55,6 +55,13 @@ VIRTLOGD_UNIT_FILES_IN = \ ...@@ -55,6 +55,13 @@ VIRTLOGD_UNIT_FILES_IN = \
SYSTEMD_UNIT_FILES += $(notdir $(VIRTLOGD_UNIT_FILES_IN:%.in=%)) SYSTEMD_UNIT_FILES += $(notdir $(VIRTLOGD_UNIT_FILES_IN:%.in=%))
SYSTEMD_UNIT_FILES_IN += $(VIRTLOGD_UNIT_FILES_IN) SYSTEMD_UNIT_FILES_IN += $(VIRTLOGD_UNIT_FILES_IN)
OPENRC_INIT_FILES += \
virtlogd.init \
$(NULL)
OPENRC_INIT_FILES_IN += \
virtlogd.init.in \
$(NULL)
noinst_LTLIBRARIES += libvirt_driver_log.la noinst_LTLIBRARIES += libvirt_driver_log.la
libvirt_la_BUILT_LIBADD += libvirt_driver_log.la libvirt_la_BUILT_LIBADD += libvirt_driver_log.la
...@@ -126,6 +133,9 @@ logging/log_daemon_dispatch_stubs.h: $(LOG_PROTOCOL) \ ...@@ -126,6 +133,9 @@ logging/log_daemon_dispatch_stubs.h: $(LOG_PROTOCOL) \
virLogManagerProtocol VIR_LOG_MANAGER_PROTOCOL \ virLogManagerProtocol VIR_LOG_MANAGER_PROTOCOL \
$(LOG_PROTOCOL) > logging/log_daemon_dispatch_stubs.h $(LOG_PROTOCOL) > logging/log_daemon_dispatch_stubs.h
virtlogd.init: logging/virtlogd.init.in $(top_builddir)/config.status
$(AM_V_GEN)$(SED) $(COMMON_UNIT_VARS) $< > $@-t && mv $@-t $@
virtlogd.service: logging/virtlogd.service.in $(top_builddir)/config.status virtlogd.service: logging/virtlogd.service.in $(top_builddir)/config.status
$(AM_V_GEN)sed $(COMMON_UNIT_VARS) $< > $@-t && mv $@-t $@ $(AM_V_GEN)sed $(COMMON_UNIT_VARS) $< > $@-t && mv $@-t $@
......
#!/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 $?
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册