2017-02-08 05:00:53 +08:00
|
|
|
# {{ ansible_managed }}
|
2016-02-11 02:15:52 +08:00
|
|
|
[Unit]
|
|
|
|
Description=Ceph OSD
|
2019-03-08 01:31:39 +08:00
|
|
|
{% if container_binary == 'docker' %}
|
2016-02-11 02:15:52 +08:00
|
|
|
After=docker.service
|
2019-06-07 03:41:35 +08:00
|
|
|
{% else %}
|
|
|
|
After=network.target
|
2019-03-08 01:31:39 +08:00
|
|
|
{% endif %}
|
2016-02-11 02:15:52 +08:00
|
|
|
|
|
|
|
[Service]
|
2016-03-29 16:23:31 +08:00
|
|
|
EnvironmentFile=-/etc/environment
|
2018-11-08 17:02:37 +08:00
|
|
|
ExecStartPre=-/usr/bin/{{ container_binary }} stop ceph-osd-%i
|
|
|
|
ExecStartPre=-/usr/bin/{{ container_binary }} rm -f ceph-osd-%i
|
2017-02-17 05:13:26 +08:00
|
|
|
ExecStart={{ ceph_osd_docker_run_script_path }}/ceph-osd-run.sh %i
|
2018-11-08 17:02:37 +08:00
|
|
|
ExecStop=-/usr/bin/{{ container_binary }} stop ceph-osd-%i
|
2020-02-11 23:09:51 +08:00
|
|
|
KillMode=none
|
2016-02-11 02:15:52 +08:00
|
|
|
Restart=always
|
|
|
|
RestartSec=10s
|
|
|
|
TimeoutStartSec=120
|
|
|
|
TimeoutStopSec=15
|
|
|
|
|
|
|
|
[Install]
|
2016-07-09 09:38:13 +08:00
|
|
|
WantedBy=multi-user.target
|