mirror of https://github.com/ceph/ceph-ansible.git
20 lines
466 B
Plaintext
20 lines
466 B
Plaintext
|
# This file is managed by ansible, don't make changes here - they will be
|
||
|
# overwritten.
|
||
|
[Unit]
|
||
|
Description=prometheus
|
||
|
{% if container_binary == 'docker' %}
|
||
|
After=docker.service
|
||
|
{% endif %}
|
||
|
|
||
|
[Service]
|
||
|
EnvironmentFile=-/etc/environment
|
||
|
ExecStart=/usr/bin/{{ container_binary }} start --attach prometheus
|
||
|
ExecStop=/usr/bin/{{ container_binary }} stop prometheus
|
||
|
Restart=always
|
||
|
RestartSec=10s
|
||
|
TimeoutStartSec=120
|
||
|
TimeoutStopSec=15
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|