2020-07-30 08:06:21 +00:00
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Cumulus Frr Container
|
|
|
|
After=docker.service network-online.target
|
|
|
|
Requires=docker.service
|
2020-07-30 08:08:49 +00:00
|
|
|
|
|
|
|
|
2020-07-30 08:06:21 +00:00
|
|
|
[Service]
|
|
|
|
Restart=always
|
|
|
|
TimeoutStartSec=0
|
|
|
|
#One ExecStart/ExecStop line to prevent hitting bugs in certain systemd versions
|
|
|
|
ExecStart=/bin/sh -c 'docker rm -f frr; \
|
2020-07-30 08:08:49 +00:00
|
|
|
docker pull {{docker_registry}}/frrouting/frr; \
|
|
|
|
docker run -t --net=host --privileged --name frr -v /etc/frr/frr.conf:/etc/frr/frr.conf -v /etc/frr/daemons:/etc/frr/daemons -v /etc/frr/bgpd.conf:/etc/frr/bgpd.conf -v /etc/frr/bfdd.conf:/etc/frr/bfdd.conf -v /var/log/frr/frr.log:/var/log/frr/frr.log {{docker_registry}}/frrouting/frr'
|
2020-07-30 08:06:21 +00:00
|
|
|
ExecStop=-/bin/sh -c '/usr/bin/docker stop frr; \
|
|
|
|
/usr/bin/docker rm -f frr'
|
2020-07-30 08:08:49 +00:00
|
|
|
|
|
|
|
|
2020-07-30 08:06:21 +00:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|