Pennaco Hosiery is to keep its Mississippi manufacturing plant open under a $2.6 million agreement with city and state officials.