Applying init script changes to validate if it's enabled in config and handle exit code properly for successfull installation