This is totally up to you and should be negotiated as part of the purchase agreement. We have seen many transactions where the seller has stayed on as an equity partner, or as an employee or independent contractor.