mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 06:07:57 +00:00
Merge pull request #815 from balena-io/change-default-timeout
compose: Change default grace period to 10s
This commit is contained in:
commit
43b8291cb1
@ -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…
Reference in New Issue
Block a user