Task that runs when server starts.