add separate systemd service for ipxd

This commit is contained in:
Mario Fetka
2026-05-06 11:12:16 +02:00
parent 80e6c5ff31
commit f63ca4b7c6
3 changed files with 23 additions and 1 deletions

1
.gitignore vendored
View File

@@ -69,3 +69,4 @@
/samples/ipxsend
/samples/rip
/samples/sap
/conf/ipxd.service

View File

@@ -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

14
conf/ipxd.service.in Normal file
View File

@@ -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