Adding redhat init/service files to start pimd
Added missing pimd.init (for RedHat/CentOS <= 6) and
pimd.service (for RedHat/CentOS >= 7)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
diff --git a/redhat/pimd.service b/redhat/pimd.service
new file mode 100644
index 0000000..d62fe64
--- /dev/null
+++ b/redhat/pimd.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=PIM multicast routing engine
+BindTo=zebra.service
+After=syslog.target network.target zebra.service
+ConditionPathExists=/etc/quagga/pimd.conf
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/sysconfig/quagga
+ExecStart=/usr/sbin/pimd -d $PIMD_OPTS -f /etc/quagga/pimd.conf
+Restart=on-abort
+
+[Install]
+WantedBy=network.target