[COOK-3773] Fixing immediate restarts on template

* Fix immediate restarts called by initial `my.cnf` template