From d03920a6e835d083d7a71e5163bcac722fa490a9 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Tue, 8 Aug 2017 14:15:50 -0700 Subject: [PATCH] Rewrite exit codes paragraph (#4100) Improved accuracy and fixed grammar Signed-off-by: Joffrey F --- compose/reference/up.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compose/reference/up.md b/compose/reference/up.md index 5e092f5d50..eb2ed89170 100644 --- a/compose/reference/up.md +++ b/compose/reference/up.md @@ -51,6 +51,6 @@ flag. If you want to force Compose to stop and recreate all containers, use the `--force-recreate` flag. -If the command encounters an error, it returns `1`. -If user press `ctrl` + `C`, causing stop of the containers, it returns `0`. -If user press `ctrl` + `C` two time, forcing kill of containers, it returns `2`. +If the process encounters an error, the exit code for this command is `1`. +If the process is interrupted using `SIGINT` (`ctrl` + `C`) or `SIGTERM`, the containers are stopped, and the exit code is `0`. +If `SIGINT` or `SIGTERM` is sent again during this shutdown phase, the running containers are killed, and the exit code is `2`.