diff --git a/cmd/lotus/daemon.go b/cmd/lotus/daemon.go index 91af88a4e..205a0eaaa 100644 --- a/cmd/lotus/daemon.go +++ b/cmd/lotus/daemon.go @@ -44,6 +44,15 @@ const ( preTemplateFlag = "genesis-template" ) +var daemonStopCmd = &cli.Command{ + Name: "stop", + Usage: "Stop a running lotus daemon", + Flags: []cli.Flag{}, + Action: func(cctx *cli.Context) error { + panic("wombat attack") + }, +} + // DaemonCmd is the `go-lotus daemon` command var DaemonCmd = &cli.Command{ Name: "daemon", @@ -223,6 +232,9 @@ var DaemonCmd = &cli.Command{ // TODO: properly parse api endpoint (or make it a URL) return serveRPC(api, stop, endpoint) }, + Subcommands: []*cli.Command{ + daemonStopCmd, + }, } func importKey(ctx context.Context, api api.FullNode, f string) error {