docker: Add Requires on docker service

When using docker container engine then the systemd unit scripts only
use a dependency on the docker daemon via the After parameter.
But if docker is restarted on a live system then the ceph systemd units
should wait for the docker daemon to be fully restarted.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1846830

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit bd22f1d1ec)
pull/5448/head
Dimitri Savineau 2020-06-22 13:58:10 -04:00 committed by Dimitri Savineau
parent a7fc4af06e
commit 5428a41fcf
14 changed files with 14 additions and 0 deletions

View File

@ -4,6 +4,7 @@
Description=grafana-server
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -2,6 +2,7 @@
Description=RBD Target API Service
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -2,6 +2,7 @@
Description=RBD Target Gateway Service
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -2,6 +2,7 @@
Description=TCMU Runner
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -2,6 +2,7 @@
Description=Ceph MDS
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -2,6 +2,7 @@
Description=Ceph Manager
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -2,6 +2,7 @@
Description=Ceph Monitor
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -3,6 +3,7 @@ Description=NFS-Ganesha file server
Documentation=http://github.com/nfs-ganesha/nfs-ganesha/wiki
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -4,6 +4,7 @@
Description=Node Exporter
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -3,6 +3,7 @@
Description=Ceph OSD
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -4,6 +4,7 @@
Description=alertmanager
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -4,6 +4,7 @@
Description=prometheus
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -2,6 +2,7 @@
Description=Ceph RBD mirror
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}

View File

@ -2,6 +2,7 @@
Description=Ceph RGW
{% if container_binary == 'docker' %}
After=docker.service
Requires=docker.service
{% else %}
After=network.target
{% endif %}