hpc-cloud/roles/cinder-controller/templates/cinder-controller.service

19 lines
407 B
SYSTEMD
Raw Normal View History

2017-08-21 11:36:43 +02:00
[Unit]
Description=Openstack Glance Container
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker kill %n
ExecStartPre=-/usr/bin/docker rm %n
ExecStart=/usr/bin/docker run --name %n \
{{ env_vars | replace('\n', '') }} \
2017-08-28 11:50:57 +02:00
-v /srv/cinder-controller/root:/root \
2017-08-21 11:36:43 +02:00
-p 8776:8776 \
{{ docker_image }}
[Install]
WantedBy=multi-user.target