mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-28 11:43:01 +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>