compose-website/unit-files/confd.service

29 lines
565 B
SYSTEMD
Raw Normal View History

2014-10-27 11:40:36 +00:00
[Unit]
Description=%p
2014-10-27 12:32:21 +00:00
# Requirements
2014-10-27 11:40:36 +00:00
Requires=docker.service
2014-10-27 12:40:32 +00:00
Requires=etcd.service
2014-10-27 11:40:36 +00:00
2014-10-27 12:32:21 +00:00
# Dependency ordering
After=docker.service
2014-10-27 12:40:32 +00:00
After=etcd.service
Before=haproxy.service
2014-10-27 12:32:21 +00:00
2014-10-27 11:40:36 +00:00
[Service]
Restart=always
2015-01-16 10:01:44 +00:00
TimeoutStartSec=0
2014-10-27 11:40:36 +00:00
ExecStartPre=-/usr/bin/docker kill %p
ExecStartPre=-/usr/bin/docker rm %p
2014-10-27 12:32:21 +00:00
ExecStart=/usr/bin/docker run \
2015-01-14 13:48:24 +00:00
--rm \
2014-10-27 12:32:21 +00:00
--name %p \
2014-11-04 18:07:18 +00:00
-v /data/runtime/haproxy/:/etc/haproxy/ \
2014-10-27 12:32:21 +00:00
-v /var/run/docker.sock:/var/run/docker.sock \
2015-01-05 16:35:46 +00:00
pierreozoux/confd
2014-10-27 11:40:36 +00:00
ExecReload=/usr/bin/docker restart %p
ExecStop=/usr/bin/docker stop %p
[Install]
WantedBy=multi-user.target