add separate systemd service for ipxd
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -69,3 +69,4 @@
|
|||||||
/samples/ipxsend
|
/samples/ipxsend
|
||||||
/samples/rip
|
/samples/rip
|
||||||
/samples/sap
|
/samples/sap
|
||||||
|
/conf/ipxd.service
|
||||||
|
|||||||
@@ -15,7 +15,9 @@ ipxlibexec_SCRIPTS = \
|
|||||||
confd__DATA = ipx
|
confd__DATA = ipx
|
||||||
|
|
||||||
if ENABLE_SYSTEMD
|
if ENABLE_SYSTEMD
|
||||||
systemdsystemunit_DATA = ipx.service
|
systemdsystemunit_DATA = \
|
||||||
|
ipx.service \
|
||||||
|
ipxd.service
|
||||||
endif
|
endif
|
||||||
|
|
||||||
network-start.sh: network-start.sh.in Makefile
|
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
|
ipx.service: ipx.service.in Makefile
|
||||||
$(AM_V_GEN)$(edit) $(srcdir)/ipx.service.in > $@
|
$(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
|
ipx: ipx.confd.in Makefile
|
||||||
$(AM_V_GEN)$(edit) $(srcdir)/ipx.confd.in > $@
|
$(AM_V_GEN)$(edit) $(srcdir)/ipx.confd.in > $@
|
||||||
|
|
||||||
@@ -34,10 +39,12 @@ EXTRA_DIST = \
|
|||||||
network-start.sh.in \
|
network-start.sh.in \
|
||||||
network-stop.sh.in \
|
network-stop.sh.in \
|
||||||
ipx.service.in \
|
ipx.service.in \
|
||||||
|
ipxd.service.in \
|
||||||
ipx.confd.in
|
ipx.confd.in
|
||||||
|
|
||||||
CLEANFILES = \
|
CLEANFILES = \
|
||||||
network-start.sh \
|
network-start.sh \
|
||||||
network-stop.sh \
|
network-stop.sh \
|
||||||
ipx.service \
|
ipx.service \
|
||||||
|
ipxd.service \
|
||||||
ipx
|
ipx
|
||||||
|
|||||||
14
conf/ipxd.service.in
Normal file
14
conf/ipxd.service.in
Normal 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
|
||||||
Reference in New Issue
Block a user