cri-o/server
Daniel J Walsh 54ee55493d Need to cleanup all pods on service poweroff
When powering off the system, we want the ocid service, to shutdown
all containers running on the system so they can cleanup properly
This patch will cleanup all pods on poweroff.

The ocid-shutdown.service drops a file /var/run/ocid.shutdown when the system
is shutting down. The ocid-shutdown.service should only be executed at system
shutdown.

On bootup sequence should be
start ocid.service
start ocid-shutdown.service (This is a NO-OP)

On system shutdown
stop ocid-shutdown.service (Creates /var/run/ocid.shutdown)
stop ocid.service (Notices /var/run/ocid.service and stops all pods before exiting.)

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-04-14 06:04:14 -04:00
..
apparmor Do not load ocid-default if configured apparmor profile is set up. 2016-12-12 15:55:17 +08:00
seccomp Update runtime-spec to v1.0.0.rc5 2017-04-12 19:15:53 -07:00
config.go test: add logging tests 2017-04-05 02:45:58 +10:00
container.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
container_attach.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_create.go Update runtime-spec to v1.0.0.rc5 2017-04-12 19:15:53 -07:00
container_exec.go server: mock ExecResponse 2017-04-06 16:37:13 +02:00
container_execsync.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
container_list.go Fix lint issues 2017-03-27 10:21:30 -07:00
container_portforward.go server: split containers actions 2016-11-22 18:38:05 +01:00
container_remove.go server: Remove the mount points after stopping the containers 2017-03-20 17:50:38 +01:00
container_start.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
container_status.go server: expose mounts in container status 2017-04-11 16:51:09 +02:00
container_stop.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
container_updateruntimeconfig.go server: mock UpdateRuntimeConfig 2016-12-15 14:31:42 +01:00
image_list.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
image_pull.go server: add auth info to image pull 2017-04-10 17:09:56 +02:00
image_remove.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
image_status.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
runtime_status.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
sandbox.go conmon: implement logging to logPath 2017-04-05 02:45:57 +10:00
sandbox_list.go Fix lint issues 2017-03-27 10:21:30 -07:00
sandbox_remove.go Need to cleanup all pods on service poweroff 2017-04-14 06:04:14 -04:00
sandbox_run.go server: Fix RunPodSandbox error path 2017-04-06 17:36:26 +02:00
sandbox_status.go Fix lint issues 2017-03-27 10:21:30 -07:00
sandbox_stop.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
server.go Need to cleanup all pods on service poweroff 2017-04-14 06:04:14 -04:00
utils.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00
version.go Applying k8s.io v3 API for ocic and ocid 2017-02-06 13:05:10 +01:00