Commit a2556f08 authored by Dimitri Savineau's avatar Dimitri Savineau Committed by Dimitri Savineau
Browse files

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: default avatarDimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit bd22f1d1)
parent 9a9ef7bc
[Unit]
Description=RBD Target API Service
After=docker.service
Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
......
[Unit]
Description=RBD Target Gateway Service
After=docker.service
Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
......
[Unit]
Description=TCMU Runner
After=docker.service
Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
......
[Unit]
Description=Ceph MDS
After=docker.service
Requires=docker.service
{% set cpu_limit = ansible_processor_vcpus|int if ceph_mds_docker_cpu_limit|int > ansible_processor_vcpus|int else ceph_mds_docker_cpu_limit|int %}
[Service]
......
[Unit]
Description=Ceph Manager
After=docker.service
Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
......
[Unit]
Description=Ceph Monitor
After=docker.service
Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
......
......@@ -2,6 +2,7 @@
Description=NFS-Ganesha file server
Documentation=http://github.com/nfs-ganesha/nfs-ganesha/wiki
After=docker.service
Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
......
......@@ -2,6 +2,7 @@
[Unit]
Description=Ceph OSD
After=docker.service
Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
......
[Unit]
Description=Ceph RBD mirror
After=docker.service
Requires=docker.service
[Service]
EnvironmentFile=-/etc/environment
......
[Unit]
Description=Ceph RGW
After=docker.service
Requires=docker.service
{% set cpu_limit = ansible_processor_vcpus|int if ceph_rgw_docker_cpu_limit|int > ansible_processor_vcpus|int else ceph_rgw_docker_cpu_limit|int %}
[Service]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment