github.com/imran-kn/cilium-fork@v1.6.9/contrib/systemd/cilium-consul.service (about)

     1  [Unit]
     2  Description=cilium-consul
     3  Documentation=https://github.com/cilium/cilium
     4  Requires=docker.service
     5  
     6  [Service]
     7  Type=oneshot
     8  RemainAfterExit=yes
     9  TimeoutStartSec=0
    10  ExecStartPre=/usr/bin/docker pull consul:0.8.3
    11  ExecStartPre=-/usr/bin/docker rm -f cilium-consul
    12  ExecStartPre=/usr/bin/docker create \
    13   --name 'cilium-consul'  -p 8500:8500 \
    14   -e CONSUL_LOCAL_CONFIG='{"skip_leave_on_interrupt": true, "disable_update_check": true}' \
    15   consul:0.8.3 agent -client=0.0.0.0 -server -bootstrap-expect 1 \
    16  
    17  ExecStart= /usr/bin/docker start cilium-consul
    18  ExecStop=-/usr/bin/docker rm -f cilium-consul
    19  
    20  [Install]
    21  WantedBy=multi-user.target