Every time MaxScale was restarted, the test waited for a total of 25 seconds. As MaxScale should start before the command returns, the sleep is not necessary. Added StartLimitBurst=0 to the systemd service file to allow rapid restarts of MaxScale.