summaryrefslogtreecommitdiff
path: root/redhat/zebra.service
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/zebra.service')
-rw-r--r--redhat/zebra.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/redhat/zebra.service b/redhat/zebra.service
new file mode 100644
index 00000000..27c3a522
--- /dev/null
+++ b/redhat/zebra.service
@@ -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