mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 13:03:02 +02:00
Everything else is named confd, even syslog messages are logged as confd, and we've talked about not using sysrepo-plugind one day, so let's prepare for a world where everthing is like that. Also, and even more importantly, fix the sysrepo-plugind condition. We cannot use <pid/syslogd>, because it can be restarted and thus consequently Finit will stop sysrepo-plugind. This first caused a bit of head scratching because it cause a lot of very odd errors in the execution of sysrepo-plugind, transactions being abruptly aborted for instace. Whatt we can do, however, is use a static condition, which Finit has support for since a few releases now. We want to guard the start of our sysrepo-plugind service behind YANG /usr/libexec/confd/bootstrap. So we can use <run/bootstrap/success>. In case the bootstrap fails, we catch that in the row before using if:<run/bootstrap/failure> to trigger the /usr/libexec/confd/error script (described previously). The other run/task/services can be guarded behind <pid/confd> and now everything suddenly makes sense. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
24 lines
744 B
Makefile
24 lines
744 B
Makefile
################################################################################
|
|
#
|
|
# confd
|
|
#
|
|
################################################################################
|
|
|
|
CONFD_VERSION = 1.0
|
|
CONFD_SITE_METHOD = local
|
|
CONFD_SITE = $(BR2_EXTERNAL_INFIX_PATH)/src/confd
|
|
CONFD_LICENSE = BSD-3-Clause
|
|
CONFD_LICENSE_FILES = LICENSE
|
|
CONFD_REDISTRIBUTE = NO
|
|
CONFD_DEPENDENCIES = augeas jansson libite sysrepo libsrx
|
|
CONFD_AUTORECONF = YES
|
|
|
|
define CONFD_INSTALL_EXTRA
|
|
cp $(CONFD_PKGDIR)/confd.conf $(FINIT_D)/available/
|
|
ln -sf ../available/confd.conf $(FINIT_D)/enabled/confd.conf
|
|
cp $(CONFD_PKGDIR)/tmpfiles.conf $(TARGET_DIR)/etc/tmpfiles.d/confd.conf
|
|
endef
|
|
CONFD_POST_INSTALL_TARGET_HOOKS += CONFD_INSTALL_EXTRA
|
|
|
|
$(eval $(autotools-package))
|