func HandleShutdownRequest(receipt MsgReceipt) {
	reply := NewMsg("shutdown_reply", receipt.Msg)
	content := receipt.Msg.Content.(map[string]interface{})
	restart := content["restart"].(bool)
	reply.Content = ShutdownReply{restart}
	receipt.SendResponse(receipt.Sockets.ShellSocket, reply)
	logger.Println("Shutting down in response to shutdown_request")
	os.Exit(0)
}
// HandleShutdownRequest sends a "shutdown" message
HandleShutdownRequest sends a "shutdown" message
// HandleShutdownRequest sends a " shutdown " message
func HandleShutdownRequest(receipt MsgReceipt) {
	reply := NewMsg("shutdown_reply", receipt.Msg)
	content := receipt.Msg.Content.(map[string]interface{})
	restart := content["restart"].(bool)
	reply.Content = ShutdownReply{restart}
	receipt.SendResponse(receipt.Sockets.ShellSocket, reply)
	logger.Println("Shutting down in response to shutdown_request")
	os.Exit(0)
}
func HandleShutdownRequest ( receipt MsgReceipt ) { reply := NewMsg ( " " , receipt . Msg ) content := receipt . Msg . Content . ( map [ string ] interface { } ) restart := content [ " " ] . ( bool ) reply . Content = ShutdownReply { restart } receipt . SendResponse ( receipt . Sockets . ShellSocket , reply ) logger . Println ( " " ) os . Exit ( 0 ) }
HandleShutdownRequest sends a "shutdown" message
HandleShutdownRequest sends a " shutdown " message