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