From aface89fd243d01b48b8a5fa782101c5c36176c3 Mon Sep 17 00:00:00 2001 From: Shaun Mulligan Date: Tue, 27 Nov 2018 12:21:08 -0800 Subject: [PATCH] compose: Set default config for stopSignal to SIGTERM Change-type: patch Signed-off-by: Shaun Mulligan shaun@balena.io --- src/compose/service.ts | 2 +- src/compose/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compose/service.ts b/src/compose/service.ts index dfeb8bff..44c856bb 100644 --- a/src/compose/service.ts +++ b/src/compose/service.ts @@ -349,7 +349,7 @@ export class Service { pidsLimit: 0, securityOpt: [], stopGracePeriod, - stopSignal: '', + stopSignal: 'SIGTERM', sysctls: {}, tmpfs, usernsMode: '', diff --git a/src/compose/utils.ts b/src/compose/utils.ts index c870d363..9ba0a481 100644 --- a/src/compose/utils.ts +++ b/src/compose/utils.ts @@ -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