Merge pull request #29902 from caervs/add_autorestart

Add on-failure to default restart policy
Upstream-commit: 0fcd55072b0199db5f24be66ff92ce6c0e771e01
Component: engine
This commit is contained in:
Brian Goff
2017-01-14 16:40:02 -05:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,10 @@ TimeoutStartSec=0
Delegate=yes
# kill only the docker process, not all processes in the cgroup
KillMode=process
# restart the docker process if it exits prematurely
Restart=on-failure
StartLimitBurst=3
StartLimitInterval=60s
[Install]
WantedBy=multi-user.target

View File

@ -23,6 +23,10 @@ TimeoutStartSec=0
Delegate=yes
# kill only the docker process, not all processes in the cgroup
KillMode=process
# restart the docker process if it exits prematurely
Restart=on-failure
StartLimitBurst=3
StartLimitInterval=60s
[Install]
WantedBy=multi-user.target