]> git.sommitrealweird.co.uk Git - quagga-debian.git/blob - redhat/zebra.service
New upstream version 1.2.4
[quagga-debian.git] / redhat / zebra.service
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
9 [Service]
10 Type=forking
11 EnvironmentFile=-/etc/sysconfig/quagga
12 ExecStartPre=/sbin/ip route flush proto zebra
13 ExecStartPre=-/bin/chmod -f 640 /etc/quagga/vtysh.conf /etc/quagga/zebra.conf
14 ExecStartPre=-/bin/chown -f $QUAGGA_USER:$QUAGGA_GROUP /run/quagga /etc/quagga/zebra.conf
15 ExecStartPre=-/bin/chown -f ${QUAGGA_USER}${VTY_GROUP:+":$VTY_GROUP"} quaggavty /etc/quagga/vtysh.conf
16 ExecStart=/usr/sbin/zebra -d $ZEBRA_OPTS -f /etc/quagga/zebra.conf
17 Restart=on-abort
18
19 [Install]
20 WantedBy=multi-user.target