From 0f6c7608ecf839e9cd56b47c9b6ee370f9528e5f Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 25 Sep 2025 09:42:17 +0200 Subject: [PATCH] package/confd: simplify, relocate netconf service Follow the good example set by the restconf service. Signed-off-by: Joachim Wiberg --- board/common/rootfs/etc/finit.d/available/netconf.conf | 3 +++ board/common/rootfs/etc/finit.d/enabled/netconf.conf | 1 + package/confd/confd.conf | 4 ---- 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 board/common/rootfs/etc/finit.d/available/netconf.conf create mode 120000 board/common/rootfs/etc/finit.d/enabled/netconf.conf diff --git a/board/common/rootfs/etc/finit.d/available/netconf.conf b/board/common/rootfs/etc/finit.d/available/netconf.conf new file mode 100644 index 00000000..656c6742 --- /dev/null +++ b/board/common/rootfs/etc/finit.d/available/netconf.conf @@ -0,0 +1,3 @@ +service name:netopeer notify:none log env:/etc/default/confd \ + [12345] netopeer2-server -F -t $CONFD_TIMEOUT -v 1 \ + -- NETCONF server diff --git a/board/common/rootfs/etc/finit.d/enabled/netconf.conf b/board/common/rootfs/etc/finit.d/enabled/netconf.conf new file mode 120000 index 00000000..aad09b82 --- /dev/null +++ b/board/common/rootfs/etc/finit.d/enabled/netconf.conf @@ -0,0 +1 @@ +../available/netconf.conf \ No newline at end of file diff --git a/package/confd/confd.conf b/package/confd/confd.conf index f7a5bb49..482ee26e 100644 --- a/package/confd/confd.conf +++ b/package/confd/confd.conf @@ -25,7 +25,3 @@ run name:failure log:prio:user.crit norestart env:/etc/default/confd \ run name:error :2 log:console norestart \ if: \ [S] /usr/libexec/confd/error -- - -service name:netopeer notify:none log env:/etc/default/confd \ - [12345] netopeer2-server -F -t $CONFD_TIMEOUT -v 1 \ - -- NETCONF server