mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-01 06:05:42 +08:00
Added small note about shutdown
See https://github.com/ipfs/go-ipfs/pull/2180#issuecomment-171889567 License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
This commit is contained in:
@ -160,6 +160,7 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
|
|||||||
select {
|
select {
|
||||||
case <-req.Context().Done():
|
case <-req.Context().Done():
|
||||||
fmt.Println("Received interrupt signal, shutting down...")
|
fmt.Println("Received interrupt signal, shutting down...")
|
||||||
|
fmt.Println("(Hit ctrl-c again to force-shutdown the daemon.)")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user