In a useful manner; in a way that achieves something
I would rather have it said, "He lived usefully," than, "He died rich."