rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | [Unit] |
| 2 | Description=GNU Zebra routing manager |
| 3 | Wants=network.target |
| 4 | Before=network.target |
| 5 | ConditionPathExists=@SYSCONFDIR@/quagga/zebra.conf |
| 6 | |
| 7 | [Service] |
| 8 | Type=forking |
| 9 | EnvironmentFile=-@SYSCONFDIR@/default/quagga |
| 10 | PIDFile=@localstatedir@/run/quagga/zebra.pid |
| 11 | ExecStartPre=@BASE_SBINDIR@/ip route flush proto zebra |
| 12 | ExecStart=@SBINDIR@/zebra -d $zebra_options -f @SYSCONFDIR@/quagga/zebra.conf |
| 13 | ExecStopPost=@base_bindir@/rm -rf @localstatedir@/run/quagga/zebra.pid |
| 14 | Restart=on-abort |
| 15 | |
| 16 | [Install] |
| 17 | WantedBy=multi-user.target |