summarylogtreecommitdiffstats
path: root/zebra.service
diff options
context:
space:
mode:
Diffstat (limited to 'zebra.service')
-rw-r--r--zebra.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/zebra.service b/zebra.service
new file mode 100644
index 00000000000..02813c37c3d
--- /dev/null
+++ b/zebra.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=GNU Zebra routing manager
+Documentation=man:zebra(8)
+After=network.target
+ConditionPathExists=/etc/quagga/zebra.conf
+
+[Service]
+Type=forking
+PIDFile=/run/quagga/zebra.pid
+ExecStartPre=/sbin/ip route flush proto zebra
+ExecStart=/usr/bin/zebra -d
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target