1
0
mirror of https://github.com/docker/cli.git synced 2026-01-18 08:21:31 +03:00

Correct docs for a docker container's clean-up.

The 'Unix Signals' (https://en.wikipedia.org/wiki/Unix_signal#Handling_signals) wiki explains that:
> 'There are two signals which cannot be intercepted and handled: SIGKILL and SIGSTOP.'

Signed-off-by: kevinmeredith <kevin.m.meredith@gmail.com>
Upstream-commit: a8e16c0079
Component: cli
This commit is contained in:
kevinmeredith
2016-05-11 14:49:24 -04:00
committed by Tibor Vass
parent ef93f78e3e
commit e811a0b92a

View File

@@ -834,7 +834,7 @@ does some more work:
# USE the trap if you need to also do manual cleanup after the service is stopped,
# or need to start multiple services in the one container
trap "echo TRAPed signal" HUP INT QUIT KILL TERM
trap "echo TRAPed signal" HUP INT QUIT TERM
# start service in background here
/usr/sbin/apachectl start