Issue #1962690 by EdNet - Fix for broken Percona support.

This needs serious spring cleaning, but at least we should make sure that the service is restarted *after* the config is updated and before error checking procedure.