rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | [Unit] |
2 | Description=BGP routing daemon | ||||
3 | BindTo=zebra.service | ||||
4 | After=zebra.service | ||||
5 | ConditionPathExists=@SYSCONFDIR@/quagga/bgpd.conf | ||||
6 | |||||
7 | [Service] | ||||
8 | Type=forking | ||||
9 | EnvironmentFile=-@SYSCONFDIR@/default/quagga | ||||
10 | PIDFile=@localstatedir@/run/quagga/bgpd.pid | ||||
11 | ExecStart=@SBINDIR@/bgpd -d $bgpd_options -f @SYSCONFDIR@/quagga/bgpd.conf | ||||
12 | ExecStopPost=@base_bindir@/rm -rf @localstatedir@/run/quagga/bgpd.pid | ||||
13 | Restart=on-abort | ||||
14 | |||||
15 | [Install] | ||||
16 | WantedBy=multi-user.target |