mirror of https://github.com/ceph/ceph-ansible.git
24 lines
573 B
Django/Jinja
24 lines
573 B
Django/Jinja
# {{ ansible_managed }}
|
|
[Unit]
|
|
Description=Ceph OSD
|
|
{% if container_binary == 'docker' %}
|
|
After=docker.service
|
|
{% else %}
|
|
After=network.target
|
|
{% 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
|
|
KillMode=none
|
|
Restart=always
|
|
RestartSec=10s
|
|
TimeoutStartSec=120
|
|
TimeoutStopSec=15
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|