From f63ca4b7c695165a2e8d8e6d9c67b44f22cb94b7 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Wed, 6 May 2026 11:12:16 +0200 Subject: [PATCH] add separate systemd service for ipxd --- .gitignore | 1 + conf/Makefile.am | 9 ++++++++- conf/ipxd.service.in | 14 ++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 conf/ipxd.service.in diff --git a/.gitignore b/.gitignore index 2a368da..177bb36 100644 --- a/.gitignore +++ b/.gitignore @@ -69,3 +69,4 @@ /samples/ipxsend /samples/rip /samples/sap +/conf/ipxd.service diff --git a/conf/Makefile.am b/conf/Makefile.am index 0886ca2..41f423d 100644 --- a/conf/Makefile.am +++ b/conf/Makefile.am @@ -15,7 +15,9 @@ ipxlibexec_SCRIPTS = \ confd__DATA = ipx if ENABLE_SYSTEMD -systemdsystemunit_DATA = ipx.service +systemdsystemunit_DATA = \ + ipx.service \ + ipxd.service endif network-start.sh: network-start.sh.in Makefile @@ -27,6 +29,9 @@ network-stop.sh: network-stop.sh.in Makefile ipx.service: ipx.service.in Makefile $(AM_V_GEN)$(edit) $(srcdir)/ipx.service.in > $@ +ipxd.service: ipxd.service.in Makefile + $(AM_V_GEN)$(edit) $(srcdir)/ipxd.service.in > $@ + ipx: ipx.confd.in Makefile $(AM_V_GEN)$(edit) $(srcdir)/ipx.confd.in > $@ @@ -34,10 +39,12 @@ EXTRA_DIST = \ network-start.sh.in \ network-stop.sh.in \ ipx.service.in \ + ipxd.service.in \ ipx.confd.in CLEANFILES = \ network-start.sh \ network-stop.sh \ ipx.service \ + ipxd.service \ ipx diff --git a/conf/ipxd.service.in b/conf/ipxd.service.in new file mode 100644 index 0000000..a9cd503 --- /dev/null +++ b/conf/ipxd.service.in @@ -0,0 +1,14 @@ +[Unit] +Description=IPX RIP/SAP routing daemon +Documentation=man:ipxd(8) man:ipx_ticks(5) +After=ipx.service network.target +Requires=ipx.service + +[Service] +Type=forking +EnvironmentFile=-@sysconfdir@/conf.d/ipx +ExecStart=@sbindir@/ipxd $IPXD_OPTS -l $IPXD_LOGFILE +Restart=on-failure + +[Install] +WantedBy=multi-user.target