mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-17 12:10:55 +00:00
Allows it to be used to see what the boot state is. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
31 lines
462 B
Plaintext
Executable File
31 lines
462 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
start()
|
|
{
|
|
ebegin "Starting diagnostics server"
|
|
|
|
DIAGNOSTICS_SERVER_FLAGS=""
|
|
|
|
case "$(mobyplatform)" in
|
|
"aws")
|
|
DIAGNOSTICS_SERVER_FLAGS="-http"
|
|
;;
|
|
"azure")
|
|
DIAGNOSTICS_SERVER_FLAGS="-http"
|
|
;;
|
|
"gcp")
|
|
DIAGNOSTICS_SERVER_FLAGS="-http"
|
|
;;
|
|
"windows")
|
|
DIAGNOSTICS_SERVER_FLAGS="-hvsock"
|
|
;;
|
|
"mac")
|
|
DIAGNOSTICS_SERVER_FLAGS="-vsock"
|
|
;;
|
|
esac
|
|
|
|
/usr/bin/diagnostics-server ${DIAGNOSTICS_SERVER_FLAGS} &
|
|
|
|
eend 0
|
|
}
|