compose: Set default config for stopSignal to SIGTERM

Change-type: patch
Signed-off-by: Shaun Mulligan shaun@balena.io
This commit is contained in:
Shaun Mulligan 2018-11-27 12:21:08 -08:00
parent 646a510310
commit aface89fd2
2 changed files with 2 additions and 2 deletions

View File

@ -349,7 +349,7 @@ export class Service {
pidsLimit: 0,
securityOpt: [],
stopGracePeriod,
stopSignal: '',
stopSignal: 'SIGTERM',
sysctls: {},
tmpfs,
usernsMode: '',

View File

@ -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