moby--moby/cmd/dockerd
Sebastiaan van Stijn f3d0f7054d
cmd/dockerd: sd_notify STOPPING=1 when shutting down
Signal systemd when we start shutting down to complement the "READY" notify
that was originally implemented in 97088ebef7

From [sd_notify(3)](https://www.freedesktop.org/software/systemd/man/sd_notify.html#STOPPING=1)

> STOPPING=1
> Tells the service manager that the service is beginning its shutdown. This is useful
> to allow the service manager to track the service's internal state, and present it to
> the user.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-12-22 10:51:17 +01:00
..
README.md
config.go
config_common_unix.go
config_unix.go
config_unix_test.go
config_windows.go
daemon.go cmd/dockerd: sd_notify STOPPING=1 when shutting down 2020-12-22 10:51:17 +01:00
daemon_freebsd.go cmd/dockerd: sd_notify STOPPING=1 when shutting down 2020-12-22 10:51:17 +01:00
daemon_linux.go cmd/dockerd: sd_notify STOPPING=1 when shutting down 2020-12-22 10:51:17 +01:00
daemon_test.go
daemon_unix.go
daemon_unix_test.go
daemon_windows.go cmd/dockerd: sd_notify STOPPING=1 when shutting down 2020-12-22 10:51:17 +01:00
docker.go
docker_unix.go
docker_windows.go
metrics.go
options.go
options_test.go
service_unsupported.go
service_windows.go

README.md

docker.go contains Docker daemon's main function.

This file provides first line CLI argument parsing and environment variable setting.