diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-04-11 13:22:57 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-04-12 14:32:24 -0400 |
commit | ad9aad99694fa9e0c6454483bc4921bf3acfa6a9 (patch) | |
tree | a67dc696a5f221c4d28e211e32ca3af7fe9e4a2d /roles/openshift_node | |
parent | 463737fd43a841b829d5c7824daf0d996e264a85 (diff) | |
download | openshift-ad9aad99694fa9e0c6454483bc4921bf3acfa6a9.tar.gz openshift-ad9aad99694fa9e0c6454483bc4921bf3acfa6a9.tar.bz2 openshift-ad9aad99694fa9e0c6454483bc4921bf3acfa6a9.tar.xz openshift-ad9aad99694fa9e0c6454483bc4921bf3acfa6a9.zip |
use RestartSec to avoid default rate limit in systemd
Lifted from https://github.com/openshift/origin/pull/8317
Diffstat (limited to 'roles/openshift_node')
-rw-r--r-- | roles/openshift_node/templates/openshift.docker.node.service | 1 | ||||
-rw-r--r-- | roles/openshift_node/templates/openvswitch.docker.service | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/roles/openshift_node/templates/openshift.docker.node.service b/roles/openshift_node/templates/openshift.docker.node.service index ff5a97fe0..30f09b250 100644 --- a/roles/openshift_node/templates/openshift.docker.node.service +++ b/roles/openshift_node/templates/openshift.docker.node.service @@ -17,6 +17,7 @@ ExecStartPost=/usr/bin/sleep 10 ExecStop=/usr/bin/docker stop {{ openshift.common.service_type }}-node SyslogIdentifier={{ openshift.common.service_type }}-node Restart=always +RestartSec=5s [Install] WantedBy=docker.service diff --git a/roles/openshift_node/templates/openvswitch.docker.service b/roles/openshift_node/templates/openvswitch.docker.service index 8052a3a39..1e1f8967d 100644 --- a/roles/openshift_node/templates/openvswitch.docker.service +++ b/roles/openshift_node/templates/openvswitch.docker.service @@ -11,6 +11,7 @@ ExecStartPost=/usr/bin/sleep 5 ExecStop=/usr/bin/docker stop openvswitch SyslogIdentifier=openvswitch Restart=always +RestartSec=5s [Install] WantedBy=docker.service |