zebra.service 682 B

123456789101112131415161718192021
  1. [Unit]
  2. Description=GNU Zebra routing manager
  3. Wants=network.target
  4. Before=network.target
  5. After=network-pre.target
  6. ConditionPathExists=/etc/quagga/zebra.conf
  7. Documentation=man:zebra
  8. [Service]
  9. Type=forking
  10. EnvironmentFile=-/etc/sysconfig/quagga
  11. ExecStartPre=/sbin/ip route flush proto zebra
  12. ExecStartPre=-/bin/chmod -f 640 /etc/quagga/vtysh.conf /etc/quagga/zebra.conf
  13. ExecStartPre=-/bin/chown -f $QUAGGA_USER:$QUAGGA_GROUP /run/quagga /etc/quagga/zebra.conf
  14. ExecStartPre=-/bin/chown -f ${QUAGGA_USER}${VTY_GROUP:+":$VTY_GROUP"} quaggavty /etc/quagga/vtysh.conf
  15. ExecStart=/usr/sbin/zebra -d $ZEBRA_OPTS -f /etc/quagga/zebra.conf
  16. Restart=on-abort
  17. [Install]
  18. WantedBy=multi-user.target