(ctx context.Context, args []string)
| 50 | } |
| 51 | |
| 52 | func stopCmd(ctx context.Context, args []string) { |
| 53 | log, service, sock, path, _ := parseCmd(ctx, "stop", args) |
| 54 | |
| 55 | log.Infof("Stopping service: %q", service) |
| 56 | id, pid, msg, err := stop(ctx, service, sock, path) |
| 57 | if err != nil { |
| 58 | log.WithError(err).Fatal(msg) |
| 59 | } |
| 60 | |
| 61 | log.Debugf("Stopped %s pid %d", id, pid) |
| 62 | } |
| 63 | |
| 64 | func startCmd(ctx context.Context, args []string) { |
| 65 | log, service, sock, path, dumpSpec := parseCmd(ctx, "start", args) |
no test coverage detected