mediaserver update to allow nginx run as daemon