add separate systemd service for ipxd
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -69,3 +69,4 @@
|
||||
/samples/ipxsend
|
||||
/samples/rip
|
||||
/samples/sap
|
||||
/conf/ipxd.service
|
||||
|
||||
@@ -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
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