mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-06 01:17:16 +00:00
See https://github.com/docker/moby/pull/303 Signed-off-by: Justin Cormack <justin.cormack@docker.com>
32 lines
458 B
Plaintext
Executable File
32 lines
458 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
depend()
|
|
{
|
|
after docker containerd
|
|
}
|
|
|
|
start()
|
|
{
|
|
ebegin "Checking system state"
|
|
|
|
DIAGNOSTICS_SERVER_FLAGS=""
|
|
|
|
case "$(mobyplatform)" in
|
|
"aws")
|
|
DIAGNOSTICS_SERVER_FLAGS="-http"
|
|
;;
|
|
"azure")
|
|
DIAGNOSTICS_SERVER_FLAGS="-http"
|
|
;;
|
|
"windows")
|
|
DIAGNOSTICS_SERVER_FLAGS="-hvsock"
|
|
;;
|
|
"mac")
|
|
DIAGNOSTICS_SERVER_FLAGS="-vsock"
|
|
;;
|
|
esac
|
|
|
|
/usr/bin/diagnostics-server ${DIAGNOSTICS_SERVER_FLAGS} &
|
|
/usr/bin/diagnostics
|
|
}
|