@daemon_command<EOL>def restart_apps_or_services(app_or_service_names=None):
if app_or_service_names:<EOL><INDENT>log_to_client("<STR_LIT>".format('<STR_LIT:U+002CU+0020>'.join(app_or_service_names)))<EOL><DEDENT>else:<EOL><INDENT>log_to_client("<STR_LIT>")<EOL><DEDENT>if app_or_service_names:<EOL><INDENT>specs = spec_assembler.get_assembled_specs()<EOL>specs_list = [specs['<STR_LIT>'][app_name] for app_name in app_or_service_names if app_name in specs['<STR_LIT>']]<EOL>repos = set()<EOL>for spec in specs_list:<EOL><INDENT>if spec['<STR_LIT>']:<EOL><INDENT>repos = repos.union(spec_assembler.get_same_container_repos_from_spec(spec))<EOL><DEDENT><DEDENT>nfs.update_nfs_with_repos(repos)<EOL><DEDENT>else:<EOL><INDENT>nfs.update_nfs_with_repos(spec_assembler.get_all_repos(active_only=True, include_specs_repo=False))<EOL><DEDENT>compose.restart_running_services(app_or_service_names)<EOL>
Restart any containers associated with Dusty, or associated with
    the provided app_or_service_names.