From 5af981a6727bb4a5e984c86556ec674e525db218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Lothor=C3=A9?= Date: Wed, 22 Apr 2026 12:35:54 +0200 Subject: [PATCH] package/frr: install systemd service files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The FRR package currently only installs systemv services files. The upstream package also provides a systemd service file and a service template file. Install those when systemd is selected as an init manager. Signed-off-by: Alexis Lothoré Signed-off-by: Marcus Hoffmann --- package/frr/frr.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/frr/frr.mk b/package/frr/frr.mk index 61a34de4d3..c5a12f6992 100644 --- a/package/frr/frr.mk +++ b/package/frr/frr.mk @@ -131,5 +131,12 @@ define FRR_INSTALL_INIT_SYSV $(TARGET_DIR)/etc/init.d/S50frr endef +define FRR_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 644 $(@D)/tools/frr.service \ + $(TARGET_DIR)/usr/lib/systemd/system/frr.service + $(INSTALL) -D -m 644 $(@D)/tools/frr@.service \ + $(TARGET_DIR)/usr/lib/systemd/system/frr@.service +endef + $(eval $(autotools-package)) $(eval $(host-autotools-package))