mirror of https://github.com/ceph/ceph-ansible.git
21 lines
527 B
Django/Jinja
21 lines
527 B
Django/Jinja
# {{ ansible_managed }}
|
|
[Unit]
|
|
Description=Ceph OSD
|
|
{% if container_binary == 'docker' %}
|
|
After=docker.service
|
|
{% endif %}
|
|
|
|
[Service]
|
|
EnvironmentFile=-/etc/environment
|
|
ExecStartPre=-/usr/bin/{{ container_binary }} stop ceph-osd-%i
|
|
ExecStartPre=-/usr/bin/{{ container_binary }} rm -f ceph-osd-%i
|
|
ExecStart={{ ceph_osd_docker_run_script_path }}/ceph-osd-run.sh %i
|
|
ExecStop=-/usr/bin/{{ container_binary }} stop ceph-osd-%i
|
|
Restart=always
|
|
RestartSec=10s
|
|
TimeoutStartSec=120
|
|
TimeoutStopSec=15
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|