mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-16 15:28:52 +00:00
Merge pull request #822 from balena-io/issue-821
compose: Change default stop signal from '' to SIGTERM
This commit is contained in:
commit
6e05f1288e
@ -349,7 +349,7 @@ export class Service {
|
||||
pidsLimit: 0,
|
||||
securityOpt: [],
|
||||
stopGracePeriod,
|
||||
stopSignal: '',
|
||||
stopSignal: 'SIGTERM',
|
||||
sysctls: {},
|
||||
tmpfs,
|
||||
usernsMode: '',
|
||||
@ -492,7 +492,7 @@ export class Service {
|
||||
tmpfs,
|
||||
extraHosts: container.HostConfig.ExtraHosts || [],
|
||||
ulimits,
|
||||
stopSignal: (container.Config as any).StopSignal || '',
|
||||
stopSignal: (container.Config as any).StopSignal || 'SIGTERM',
|
||||
stopGracePeriod: (container.Config as any).StopTimeout || 10,
|
||||
healthcheck: ComposeUtils.dockerHealthcheckToServiceHealthcheck(
|
||||
(container.Config as any).Healthcheck || {},
|
||||
|
@ -159,7 +159,7 @@ export function getStopSignal(
|
||||
}
|
||||
return composeStop;
|
||||
}
|
||||
return _.get(imageInfo, 'Config.StopSignal', '');
|
||||
return _.get(imageInfo, 'Config.StopSignal', 'SIGTERM');
|
||||
}
|
||||
|
||||
// TODO: Move healthcheck stuff into seperate module
|
||||
|
Loading…
x
Reference in New Issue
Block a user