MCPcopy Create free account
hub / github.com/linuxkit/linuxkit / startCmd

Function startCmd

pkg/init/cmd/service/cmd.go:64–74  ·  view source on GitHub ↗
(ctx context.Context, args []string)

Source from the content-addressed store, hash-verified

62}
63
64func startCmd(ctx context.Context, args []string) {
65 log, service, sock, path, dumpSpec := parseCmd(ctx, "start", args)
66
67 log.Infof("Starting service: %q", service)
68 id, pid, msg, err := start(ctx, service, sock, path, dumpSpec)
69 if err != nil {
70 log.WithError(err).Fatal(msg)
71 }
72
73 log.Debugf("Started %s pid %d", id, pid)
74}
75
76func restartCmd(ctx context.Context, args []string) {
77 // validate arguments with the command as "restart"

Callers 2

restartCmdFunction · 0.85
mainFunction · 0.85

Calls 2

parseCmdFunction · 0.85
startFunction · 0.85

Tested by

no test coverage detected