mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-16 23:38:52 +00:00
compose: Change default grace period to 10s
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
20d0af1d70
commit
fe44d496fb
@ -151,7 +151,7 @@ export class Service {
|
||||
delete config.shmSize;
|
||||
|
||||
// time strings
|
||||
let stopGracePeriod = 0;
|
||||
let stopGracePeriod = 10;
|
||||
if (config.stopGracePeriod != null) {
|
||||
stopGracePeriod = new Duration(config.stopGracePeriod).seconds();
|
||||
}
|
||||
@ -493,7 +493,7 @@ export class Service {
|
||||
extraHosts: container.HostConfig.ExtraHosts || [],
|
||||
ulimits,
|
||||
stopSignal: (container.Config as any).StopSignal || '',
|
||||
stopGracePeriod: (container.Config as any).StopTimeout || 0,
|
||||
stopGracePeriod: (container.Config as any).StopTimeout || 10,
|
||||
healthcheck: ComposeUtils.dockerHealthcheckToServiceHealthcheck(
|
||||
(container.Config as any).Healthcheck || {},
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user