Went trough history why restart_all_services was there and it looks like it was mistake on my part when i was converting it to ResourceDefintion.
See https://github.com/wildfly/wildfly/commit/dc00def