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