1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg
Dan Walsh d1ae13b0b0 Define all of the signals defined by kill -l
1) SIGHUP	 2) SIGINT	 3) SIGQUIT	 4) SIGILL	 5) SIGTRAP
 6) SIGABRT	 7) SIGBUS	 8) SIGFPE	 9) SIGKILL	10) SIGUSR1
11) SIGSEGV	12) SIGUSR2	13) SIGPIPE	14) SIGALRM	15) SIGTERM
16) SIGSTKFLT	17) SIGCHLD	18) SIGCONT	19) SIGSTOP	20) SIGTSTP
21) SIGTTIN	22) SIGTTOU	23) SIGURG	24) SIGXCPU	25) SIGXFSZ
26) SIGVTALRM	27) SIGPROF	28) SIGWINCH	29) SIGIO	30) SIGPWR
31) SIGSYS	34) SIGRTMIN	35) SIGRTMIN+1	36) SIGRTMIN+2	37) SIGRTMIN+3
38) SIGRTMIN+4	39) SIGRTMIN+5	40) SIGRTMIN+6	41) SIGRTMIN+7	42) SIGRTMIN+8
43) SIGRTMIN+9	44) SIGRTMIN+10	45) SIGRTMIN+11	46) SIGRTMIN+12	47) SIGRTMIN+13
48) SIGRTMIN+14	49) SIGRTMIN+15	50) SIGRTMAX-14	51) SIGRTMAX-13	52) SIGRTMAX-12
53) SIGRTMAX-11	54) SIGRTMAX-10	55) SIGRTMAX-9	56) SIGRTMAX-8	57) SIGRTMAX-7
58) SIGRTMAX-6	59) SIGRTMAX-5	60) SIGRTMAX-4	61) SIGRTMAX-3	62) SIGRTMAX-2
63) SIGRTMAX-1	64) SIGRTMAX

This will allow users to specify signals by name.  Needed to make docker run --stop-signal
work as defined by systemd.

man systemd

defines the proper way to shutdown a systemd running as pid 1 in a container as

SIGRTMIN+4

Signed-off-by: Dan Walsh <dwalsh@redhat.com>
2015-11-12 09:55:18 -05:00
..
ansiescape
archive Merge pull request #17732 from Microsoft/sjw/archive_access_time_fix 2015-11-10 13:17:03 -08:00
broadcaster
chrootarchive
devicemapper Fix golint warnings 2015-11-02 08:02:25 -08:00
directory
discovery
fileutils
graphdb
homedir
httputils
idtools
integration
ioutils Avoid panic on write after close in http 2015-11-02 18:14:43 -08:00
jsonlog
jsonmessage
listenbuffer
locker Use timeouts instead of relying on runtime.GoSched 2015-11-11 20:59:07 -05:00
longpath
mflag Change 'docker run' exit codes to distinguish docker/contained errors 2015-11-04 15:18:50 -05:00
mount
namesgenerator
nat
parsers Fix panic in parsing /etc/os-release 2015-11-05 19:59:29 +01:00
pidfile
plugins
pools
progressreader
promise
proxy
pubsub
random
reexec
signal Define all of the signals defined by kill -l 2015-11-12 09:55:18 -05:00
sockets
stdcopy
streamformatter
stringid Fix golint warnings 2015-11-02 08:02:25 -08:00
stringutils
symlink
sysinfo
system Merge pull request #17089 from Microsoft/10662-ansi 2015-11-09 08:05:08 -08:00
tailfile
tarsum Fix golint warnings 2015-11-02 08:02:25 -08:00
term
timeoutconn
timeutils
tlsconfig Fix golint warnings 2015-11-02 08:02:25 -08:00
truncindex Do not rely on string comparison in truncindex 2015-11-04 11:34:05 -08:00
ulimit
units
urlutil
useragent
version
README.md

pkg/ is a collection of utility packages used by the Docker project without being specific to its internals.

Utility packages are kept separate from the docker core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the Docker organization, to facilitate re-use by other projects. However that is not the priority.

The directory pkg is named after the same directory in the camlistore project. Since Brad is a core Go maintainer, we thought it made sense to copy his methods for organizing Go code :) Thanks Brad!

Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!