Backport Redmine#5940: fix services_autorun for all agents