6027290bc4
Creating the unit using default settings early on and then changing it during network_plugin section leads to too many docker restarts and duplicated code. Reversed Wants= dependence on docker.service so it does not restart docker when reloading systemd Consolidated all docker restart handlers.
16 lines
370 B
Django/Jinja
16 lines
370 B
Django/Jinja
[Unit]
|
|
Documentation=http://docs.weave.works/
|
|
Wants=docker.socket weave.service
|
|
After=docker.service docker.socket weave.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
TimeoutStartSec=0
|
|
EnvironmentFile=-/etc/weave.%H.env
|
|
EnvironmentFile=-/etc/weave.env
|
|
ExecStart={{ bin_dir }}/weave expose
|
|
ExecStop={{ bin_dir }}/weave hide
|
|
|
|
[Install]
|
|
WantedBy=weave-network.target
|