In the event of a dissolution of a limited partnership: (a) Except as provided in the partnership agreement, the general partners who have not wrongfully dissolved a limited partnership or, if none, the limited partners, may wind up the limited partnership`s affairs, unless the dissolution occurs pursuant to subdivision (d) of Section 15681, in which event the winding up shall be conducted in accordance with the decree of dissolution. (b) Upon the petition of limited partners representing 5 percent or more of the interests of limited partners, or three or more creditors, a court of competent jurisdiction may enter a decree ordering the winding up of the limited partnership if that appears necessary for the protection of any parties in interest. The decree shall designate the partners who are to wind up the limited partnership`s affairs. (c) Unless otherwise provided in the partnership agreement, the limited partners winding up the affairs of the partnership pursuant to this section, shall be entitled to reasonable compensation.