fixes to mariadb-start

added SEGMENT and WAN params to enable region segmentation and wan optimizations respectively.