mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 08:50:26 +00:00
redhat: add systemd service files
* redhat/*.service: add systemd service file for each routing daemon * redhat/quagga.sysconfig: add comment about watchquagga and systemd * redhat/Makefile.am: add systemd service files to distribution Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
a41242bed8
commit
4b5a2103b7
@ -1,4 +1,6 @@
|
||||
|
||||
EXTRA_DIST = quagga.pam quagga.sysconfig quagga.spec quagga.logrotate \
|
||||
zebra.init ripd.init ospfd.init ripngd.init ospf6d.init bgpd.init \
|
||||
isisd.init babeld.init watchquagga.init quagga.pam.stack
|
||||
EXTRA_DIST = babeld.init babeld.service bgpd.init bgpd.service isisd.init \
|
||||
isisd.service ospf6d.init ospf6d.service ospfd.init ospfd.service \
|
||||
quagga.logrotate quagga.pam quagga.pam.stack quagga.spec \
|
||||
quagga.sysconfig ripd.init ripd.service ripngd.init ripngd.service \
|
||||
watchquagga.init zebra.init zebra.service
|
||||
|
14
redhat/babeld.service
Normal file
14
redhat/babeld.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Babel routing daemon
|
||||
BindTo=zebra.service
|
||||
After=syslog.target network.target zebra.service
|
||||
ConditionPathExists=/etc/quagga/babeld.conf
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=/etc/sysconfig/quagga
|
||||
ExecStart=/usr/sbin/babeld -d $BABELD_OPTS -f /etc/quagga/babeld.conf
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
14
redhat/bgpd.service
Normal file
14
redhat/bgpd.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=BGP routing daemon
|
||||
BindTo=zebra.service
|
||||
After=syslog.target network.target zebra.service
|
||||
ConditionPathExists=/etc/quagga/bgpd.conf
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=/etc/sysconfig/quagga
|
||||
ExecStart=/usr/sbin/bgpd -d $BGPD_OPTS -f /etc/quagga/bgpd.conf
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
14
redhat/isisd.service
Normal file
14
redhat/isisd.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=IS-IS routing daemon
|
||||
BindTo=zebra.service
|
||||
After=syslog.target network.target zebra.service
|
||||
ConditionPathExists=/etc/quagga/isisd.conf
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=/etc/sysconfig/quagga
|
||||
ExecStart=/usr/sbin/isisd -d $ISISD_OPTS -f /etc/quagga/isisd.conf
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
14
redhat/ospf6d.service
Normal file
14
redhat/ospf6d.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=OSPF routing daemon for IPv6
|
||||
BindTo=zebra.service
|
||||
After=syslog.target network.target zebra.service
|
||||
ConditionPathExists=/etc/quagga/ospf6d.conf
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=/etc/sysconfig/quagga
|
||||
ExecStart=/usr/sbin/ospf6d -d $OSPF6D_OPTS -f /etc/quagga/ospf6d.conf
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
14
redhat/ospfd.service
Normal file
14
redhat/ospfd.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=OSPF routing daemon
|
||||
BindTo=zebra.service
|
||||
After=syslog.target network.target zebra.service
|
||||
ConditionPathExists=/etc/quagga/ospfd.conf
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=/etc/sysconfig/quagga
|
||||
ExecStart=/usr/sbin/ospfd -d $OSPFD_OPTS -f /etc/quagga/ospfd.conf
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
@ -10,7 +10,12 @@ RIPD_OPTS="-A 127.0.0.1"
|
||||
RIPNGD_OPTS="-A ::1"
|
||||
ZEBRA_OPTS="-A 127.0.0.1"
|
||||
|
||||
# Watchquagga configuration
|
||||
# Watchquagga configuration for LSB initscripts
|
||||
#
|
||||
# (Not needed with systemd: the service files are configured to automatically
|
||||
# restart any daemon on failure. If zebra fails, all running daemons will be
|
||||
# stopped; zebra will be started again; and then the previously running daemons
|
||||
# will be started again.)
|
||||
#
|
||||
# Uncomment and edit this line to reflect the daemons you are actually using:
|
||||
#WATCH_DAEMONS="zebra bgpd ospfd ospf6d ripd ripngd"
|
||||
|
14
redhat/ripd.service
Normal file
14
redhat/ripd.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=RIP routing daemon
|
||||
BindTo=zebra.service
|
||||
After=syslog.target network.target zebra.service
|
||||
ConditionPathExists=/etc/quagga/ripd.conf
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=/etc/sysconfig/quagga
|
||||
ExecStart=/usr/sbin/ripd -d $RIPD_OPTS -f /etc/quagga/ripd.conf
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
14
redhat/ripngd.service
Normal file
14
redhat/ripngd.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=RIP routing daemon for IPv6
|
||||
BindTo=zebra.service
|
||||
After=syslog.target network.target zebra.service
|
||||
ConditionPathExists=/etc/quagga/ripngd.conf
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=/etc/sysconfig/quagga
|
||||
ExecStart=/usr/sbin/ripngd -d $RIPNGD_OPTS -f /etc/quagga/ripngd.conf
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
14
redhat/zebra.service
Normal file
14
redhat/zebra.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=GNU Zebra routing manager
|
||||
After=syslog.target network.target
|
||||
ConditionPathExists=/etc/quagga/zebra.conf
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=-/etc/sysconfig/quagga
|
||||
ExecStartPre=/sbin/ip route flush proto zebra
|
||||
ExecStart=/usr/sbin/zebra -d $ZEBRA_OPTS -f /etc/quagga/zebra.conf
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
Loading…
Reference in New Issue
Block a user